Parsing nulls with MID statement

When parsing a data stream with VB 5 and the MID statement, it refuses to pass back nulls (x'00'). I'm a mainframe Assembler programmer and it's very irritating to have the compiler decide what data I want/need to see. If a string contains "ABCD" + 3 nulls + "DEF" and I use Mid(x, i, 1) to examine each byte in the string, the 5th iteration doesn't give me the 1st of the 3 nulls. It skips over the nulls and passes back the "E" as if it were in the 5th position. Maddening. What should I be using instead of the MID statement to interrogate/manipulate every byte in the string?

Sign In or Register to comment.

Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!