as jeffray said you have to end your char arrays with a null. you can also use length = strlen(array) to get the number of characters in the array not including the null. just remeber to minus one if you're starting at 0.
main()
{
int pid;
pid = fork();
if(pid == 0)
{
printf("child process id is %d\n",getpid());
exit(0); /* exit child */
}
else
{
printf("parent process id is%d\n",getpid())...
I have a flexgrid with 3 columns and ? rows. the user can change the information in the 3rd column. how do I loop through and retrieve this information after the user is done with it?
To make a control array of check boxes.
1)drop a check box on the screen.
2)select the check box.
3)hit ctrl-c to copy the check box.
4)select the form that you want the check box to appear on.(or if you were putting them on a frame you would need to select the frame)
5)hit ctrl-v to paste the...
As far as I can tell you can't disable particular items, it's either the the list box or nothing. You may want to try unselecting items that are not compatible.
If lstDisposition.Selected(0) = True Then
lstDisposition.Selected(1) = False
...
Else
...
End If
Or you may want to try a control...
Once you know what you are sending you can
ReDim ByteArray(len(sSendData)).
The &H tells VB that you are using hex.
&H2 = STX (Start of text)
&H3 = ETX (End of text)
...
You can look them up on a ASCII table they are used to tell when you have started sending a message or ending a message...
You have to declare the input mode as binary, you should be able to send text or binary info. But to use binary mode you have to use a byte array and you can send hex or Decimal data.
dim ByteArray(2) as Byte
MSComm.InputMode = comInputModeBinary
ByteArray(0) = &H2
ByteArray(1) = &H5...
On my PC I had to disable my windows screen saver it kept shutting down VB6. Now the same thing is happening on a client site to a program I wrote. When power saver executes the program shuts down. Is there anything I can do besides disabling power saver?
This can be used for copying a file from one place to another. Maybe you can loop through the PCs on the network and send it to the proper directory.
Private Sub Command1_Click()
Dim fs as Variant
Set fs = CreateObject("Scripting.FileSystemobject")
fs.copyfile...
Do you want to count from 1 to 3 or or execute a procedure every three seconds?
If you want to execute something every three seconds then set the interval on your timer to 3000. Then
Private Sub Timer1_Timer()
Call Sub_Procedure_Here
End Sub
I'm not sure why you want to see the count but if...
I am loading a form when a button is clicked. After that form finishes an upload (or if a cancel button is clicked) it is unloaded. When the form unloads it executes the same line which loaded it in the first place "Load FrmUpload" and I receive an error "run time error 364 -...
Send it in a Byte array, you should be in binary mode.
MSComm.InputMode = comInputModeBinary
Dim ByteArray(2) as Byte
ByteArray(0) = &H2
ByteArray(1) = &H3
ByteArray(2) = &H4
Mscomm.Output = ByteArray()
use a byte array to send your data.
ie.
Dim ByteArray(3) as Byte
ByteArray(0) = &H2
ByteArray(1) = &H6
ByteArray(2) = &HD
ByteArray(3) = &HA
Mscomm.Output = ByteArray()
The printer.newpage increments the page number. I'm starting a new document so I need to start at page one. Well maybe I'll have to do it the old fashioned way and keep track of the pages myself.
Does VB have a command similiar to the C continue command.
In C the continue command takes you back to the first line in a loop without executing the commands that follow the continue command.
My company has a program running to communicate unix commands for a pc running a powerbuilder program.
in order to do this you need to have a daemon process running on the unix box listening. The vb program will have to open a socket to communicate to the listening program (ours is written in...
If you want to set them you do it during run time.
MSFGrid.ColWidth(0) = 1000
MSFGrid.ColWidth(1) = 2000
If you print it out it won't be exactly what you set it to.
ie. 1000 will be 1005, 2000 is 1995.
MsgBox MSFGrid.ColWidth(0)
MsgBox MSFGrid.ColWidth(2)
What exactly do you mean by another form. Each tab can be designed the way you want. One thing to keep in mind when working with tabs is that you must draw your controls directly onto the tab. Double clicking attaches the control to the form though it appears to be on the tab.
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.