Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Pole Display
Message
De
02/01/2005 10:14:51
 
 
À
01/01/2005 10:36:04
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Versions des environnements
Visual FoxPro:
FoxPro Dos
OS:
Windows XP
Network:
Novell 4.x
Database:
Visual FoxPro
Divers
Thread ID:
00973620
Message ID:
00973696
Vues:
19
Hi Saifuddin,

I don't know what a pole display is, I assume it is some hardware connected to the serial ports. The lines of code you posted are DOS commands to set up the communication parameters (baud rate, parity, etc) on the COM1 and COM2 serial ports of the PC, then a space character is sent to each with the redirected ECHO.

I would recommend setting the parameters once, possibly before VFP is started. If you want to do it from within VFP, one way would be
RUN mode com1:9600,n,8,1
RUN mode com2:9600,n,8,1
Note there are many other ways which will probably have already been posted by the time I finish typing this in.

To send the space character to the serial ports from within VFP you could use
STRTOFILE(' ','COM1')   && Port1
STRTOFILE(' ','COM2')   && Port2
Alternatively you could place the two sets of code in BAT files and execute them from within VFP using RUN, ShellExecute, WScript, etc, etc.

HTH

Alan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform