I haven't studied the string structure in PureBasic yet. But I remember for sure that in C++ strings end with a null byte. Then this is a shortcoming of C++ too.
I also remembered that many Windows API require a string to be terminated by a null byte unless the string length is explicitly specified.
Probably for compatibility the lines end is null.
I also remembered that many Windows API require a string to be terminated by a null byte unless the string length is explicitly specified.
Probably for compatibility the lines end is null.
In BASIC, binary data is typically stored using the DATA keyword. It exists in PureBasic https://www.purebasic.com/documentation ... /data.htmlIn BBC BASIC that is essential to allow strings to contain VDU commands, such as for changing colour, plotting sprites etc.
Statistics: Posted by Vasian — Wed Apr 02, 2025 2:26 pm