sprintf equvalent in VB.NET

ar_pad

Active member
Joined
Jun 5, 2006
Messages
26
Programming Experience
Beginner
hi,

I used the following statement in VC++ to send commands to serial device.
sprintf(buf,"%c%c%c",0x55,0x52,0x0d);
Equivalent in VB.NET? I tried with string.format(String.Format("{0:x},{1:x}", 0x55, 0x56). got an error indication like "Comma,")" or a valid expression continuation expected."
how to convert those hex datas into string?
Thank you!
 
Back
Top