Code:
1) Str = "a b"
2) Str = "a" & Chr(32) & "b"
3) Str = "a b"
Option 1 is a result of pressing the TAB key twice in
VB.
InStr(str, chr(32)) returns 2 in all the above.
In ASM, pressing the TAB key stored the ASCII value 9, which resulted in the appropiate gap. However in
VB the tab key must be pressed consecutively in which chr(9) does not appear instead multiple occurences of chr(32).
You can check this by using CopyMemory into a Byte Array if you wish.