Help with strings

BlitzMax Forums/BlitzMax Beginners Area/Help with strings

The 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.

how do I reverse the process in the same sort of way? Is it some sort of CString related instruction too?

In a way, you must allocate enough space ahead of time and make it a string when done writing to it:
Const LENGTH:Int = 8
Local p:Int Ptr = Int Ptr MemAlloc(LENGTH)
p[0] = 1684234849 ' abcd
p[1] = 875770417 ' 1234
Print String.FromBytes(p, LENGTH)
MemFree p