Forum > General
How can i send non printble asci carecter?
(1/1)
ahmetnurideniz:
Hi,
I need send non printible ascii. For example.
if i send 1 (integer) my device conver it 49
what am i send for device understant 1
i looked this table http://easycalculation.com/ascii-hex.php
it write "SOH" 1 but how can i send it?
device has c# example but i can't convert it lazarus.
c# example write
--- Code: --- foreach (string value in values)
{
int v = Int32.Parse(value);
if (v != 0)
ms.Write(new byte[] { 1 }, 0, 1);
else
ms.Write(new byte[] { 0 }, 0, 1);
}
break;
--- End code ---
thanks.
typo:
--- Code: ---ShowMessage(Chr(1));
ShowMessage(Chr(49));
--- End code ---
ahmetnurideniz:
--- Quote from: typo on September 03, 2010, 12:21:36 am ---
--- Code: ---ShowMessage(Chr(1));
ShowMessage(Chr(49));
--- End code ---
--- End quote ---
this is working thanks
Navigation
[0] Message Index