unless you add it in you are correct. i was suggesting use of ToCString which converts the BMAX string to a C string... which should be null terminated. by converting to a C string he was afraid it would introduce a null character into his bank. my code example checking for the null was checking the result of ToCString() for a null value. the second loops directly through the BMAX string, thus avoiding the ToCString altogether.
String to Buffer
BlitzMax Forums/BlitzMax Programming/String to BufferThe forum is locked. These are the original blitzbasic.com forums, kept so they can still be read. No new topics, replies or edits can be made here. To join in, head over to the Blitz3D+ forums.