Hi Mark,
changing the TYPE to:
[code=thinbasic]
Type Record
Message As ASCIIZ * 50
Alt As ASCIIZ * 50
End Type
[/code]
seems to fix the problem.
I am thinking why - the only difference is that STRING * n is padded with spaces (ASCII 32), while ASCIIZ * n is padded with ASCII 0.
I think both should work for this case, but better wait for Eros.
Petr
Bookmarks