Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Search results for query: *

  1. gxdragon

    Have array[50] want to cut array to array[count] ideas?

    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.
  2. gxdragon

    Fork - How to kill PIDs ?

    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())...
  3. gxdragon

    retrieve data from a flexgrid

    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?
  4. gxdragon

    P.S. "to Disable items in listbox. . . ."

    Sorry i'm not familiar with the word version. Maybe somebody else can answer that.
  5. gxdragon

    P.S. "to Disable items in listbox. . . ."

    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...
  6. gxdragon

    P.S. "to Disable items in listbox. . . ."

    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...
  7. gxdragon

    MSCOMM .Output Question

    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...
  8. gxdragon

    MSCOMM .Output Question

    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...
  9. gxdragon

    Screen Saver

    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?
  10. gxdragon

    distribution of files

    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...
  11. gxdragon

    Need a continuous timer to count from 1 to 3?

    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...
  12. gxdragon

    Loading & Unloading a form

    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 -...
  13. gxdragon

    This is killing me.

    I have had problems in the past using "=" with strings when I knew that they were eqaul. Have you tried? If Strcomp(temp1,temp2) = 0 Then
  14. gxdragon

    MScomm object and Hex values

    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()
  15. gxdragon

    Is there any way to output Hex or Binary using MSComm?

    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()
  16. gxdragon

    page numbering using the printer object

    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.
  17. gxdragon

    continue

    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.
  18. gxdragon

    Execute a command on a Unix server from Windows platform

    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...
  19. gxdragon

    Sizing Cols in the MSHFlexGrid

    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)
  20. gxdragon

    Tab control

    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.

Part and Inventory Search

Back
Top