Help with CHR(0)
Posted: Mon May 29, 2006 12:14 am
Hi everybody..
Need to know what's the difference between VB's 6.0 CHR and Clipper/Harbour/xHabour's one
I have a VB sample which comunicates with an OCX
Ex.
data= chr(0)
fe.addDataField data
In harbour/xHarbour
data:= Chr(0)
Ef:Do("addDataField",data)
Both are supposed to add some data to a string which is sent to a Com port.
BUT.......
If I use PortMon to monitor the com port, I can see that in VB the field is added with "00" in the string sent to the port, but in xHarbour sample, this part is missing, so It fails.
I read about Chr(0) in the NG's and I understand that it is equivalent to a null character, but I need to know the ASCII character code for 0 ( cero )
Any way to do it
Thanks in advance...
Need to know what's the difference between VB's 6.0 CHR and Clipper/Harbour/xHabour's one
I have a VB sample which comunicates with an OCX
Ex.
data= chr(0)
fe.addDataField data
In harbour/xHarbour
data:= Chr(0)
Ef:Do("addDataField",data)
Both are supposed to add some data to a string which is sent to a Com port.
BUT.......
If I use PortMon to monitor the com port, I can see that in VB the field is added with "00" in the string sent to the port, but in xHarbour sample, this part is missing, so It fails.
I read about Chr(0) in the NG's and I understand that it is equivalent to a null character, but I need to know the ASCII character code for 0 ( cero )
Any way to do it
Thanks in advance...