General information
Category:
ActiveX controls in VFP
Jim,
Sorry to hear that the response to your query has been less that stellar :-) The quick answer is to look at MSDN #Q139526 for starters. A MSDN search for "mscomm32 foxpro" will give you everything they have. The help file for the control is comm98.chm.
Conceptually, you have at many options:
1. Grab your record a field at a time, do the data type conversions to CHAR, build your output string adding any necessary formatting and send.
2. Select just the records of interest, and do a COPY TO yourfile.ext TYPE CSV. All CHAR data and formatted for you. Read the file line by line with FOPEN/FGETS and send it.
3. Variation of 2 - FILETOSTRING() your .csv file and deal with it on a char by char, line by line etc basis as suits you.
4. and the list goes on...
The bottom line, once you have your output string defined, a simple THISFORM.yourcommcontrol.Output = youroutputstring will send it.
Personally, I favor constructing my desired output entirely prior to sending data. Giving it a disk presence allows for easier troubleshooting. If your data volume is low, fine. Seperating the data munging from the serial transfer is a must, IMHO. While your transfer is running, focus your efforts on keeping it running - error checking and handling. Have fun!
>Thanks Tracey: Your's is the only answer I ahve received and I thank you. You have given me a start. I will do the search on UT as you suggest.
>Thanks again.
>Jim
Previous
Next
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only