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: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:
01226779
Vues:
22
Works like a charm. Thanks Yuri! :o)


>>Ok, it's Friday. Must be why I can't see the forest...
>>
>>I can programmatically pass information correctly to a bluetooth device using this format (the format is the bluetooth device's programming language syntax):
>>
>>lnBytes = thisform.zOcx.Send([! U1 GETVAR "bluetooth.authentication"]+CHR(13)+CHR(10))
>>
>>That succeeds. However, if I type
>>
>>! U1 GETVAR "bluetooth.authentication"
>>
>>in a textbox and try this:
>>
>>lnBytes = thisform.zOcx.Send(thisform.text1.value+CHR(13)+CHR(10))
>>
>>it fails. So does passing single quotes or square brackets. I need to pass a value INSIDE double quotes taken from a value typed in the textbox and pass the double quotes in the string. Any ideas? What obvious thing am I missing this time? :o)
>
>lnBytes = thisform.zOcx.Send("["+alltr(thisform.text1.value)+"]"+CHR(13)+CHR(10))
.·*´¨)
.·`TCH
(..·*

010000110101001101101000011000010111001001110000010011110111001001000010011101010111001101110100
"When the debate is lost, slander becomes the tool of the loser." - Socrates
Vita contingit, Vive cum eo. (Life Happens, Live With it.)
"Life is not measured by the number of breaths we take, but by the moments that take our breath away." -- author unknown
"De omnibus dubitandum"
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform