Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Syntax Conundrum single quotes, double quotes, brackets
Message
De
18/05/2007 11:26:00
 
 
À
18/05/2007 11:12:02
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01226752
Message ID:
01226789
Vues:
16
This message has been marked as a message which has helped to the initial question of the thread.
>Works like a charm. Thanks Yuri! :o)

if
>>>lnBytes = thisform.zOcx.Send([! U1 GETVAR "bluetooth.authentication"]+CHR(13)+CHR(10))
and
>>lnBytes = thisform.zOcx.Send("["+alltr(thisform.text1.value)+"]"+CHR(13)+CHR(10))
works, then zOcx must ignore [ and ].

In the first case you used [] as delimiters to be able to have "" within the string. Now you really inclucde the brackets in the string...

So it doesn't seem to matter if you send
! U1 GETVAR "bluetooth.authentication"
or
[! U1 GETVAR "bluetooth.authentication"]
plus a CRLF.
thisform.zOcx.Send(alltr(thisform.text1.value)+CHR(13)+CHR(10))
should work

Bye, Olaf.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform