[quote:52929741fa="njepsen"]What happens if I do this
[code:1:52929741fa]
dim error_msg as string*200
[/code:1:52929741fa]
and err_msg ends up being >199 bytes?[/quote:52929741fa]
If the string has to hold > 199 chars - it depends. Say 200 chars, nothing unusual will happen. Dimensioning a string with 200 chars will reserve 201 bytes in memory, as one byte for the string terminator is included.
More interesting things will only happen, if more than 200 chars are written into.
↧