Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MSComm Documentation
Message
De
28/09/2002 09:29:39
 
 
À
27/09/2002 14:26:47
Information générale
Forum:
Visual FoxPro
Catégorie:
Contrôles ActiveX en VFP
Divers
Thread ID:
00705355
Message ID:
00705546
Vues:
21
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
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform