Len operator accepts illegal parameters.

BlitzMax Forums/BlitzMax Programming/Len operator accepts illegal parameters.

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.

Tachyon, strings are nothing more than an array of type Byte.
Except that they're arrays of Shorts, since they store unicode ;-)
I'm having a little trouble with getting Chr() to work properly as an array.
Try this:
Local N = 65
Local Text$ = Chr N
===== Does the same as =====
Local N = 65
Local Text$ = String.FromShorts ( Short Ptr Varptr N , 1 )
(Not the same like Short arrays, but it replaces the Chr operator)