>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.