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 wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Recent content by gxdragon

  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()

Part and Inventory Search

Back
Top