Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MSComm Documentation
Message
From
28/09/2002 09:29:39
 
 
To
27/09/2002 14:26:47
James Hill
Jim Hill Productions
Halifax, Nova Scotia, Canada
General information
Forum:
Visual FoxPro
Category:
ActiveX controls in VFP
Miscellaneous
Thread ID:
00705355
Message ID:
00705546
Views:
20
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
Map
View

Click here to load this message in the networking platform