In VB6, I use CHR$(&H00) to create a Null Character.
In VB.Net VS2008 CHR(&H00) creats a Null.
I'm trying to send a Hex(00) to a serial device, but the VB.Net function only sends a null, not a null character.
How can I accomplish this with VB.Net?
Printable View
In VB6, I use CHR$(&H00) to create a Null Character.
In VB.Net VS2008 CHR(&H00) creats a Null.
I'm trying to send a Hex(00) to a serial device, but the VB.Net function only sends a null, not a null character.
How can I accomplish this with VB.Net?
Use ControlChars.NullChar constant.
As I've said on a different forum, ControlChars.NullChar will not give any different result because a null character is a null character. The issue lies elsewhere, probably with string handling.
Send 0x00 byte instead?