Hi Nicola,
without #autodim enabled, r needs to be: dim as string r.
this is a current list of all the attributes from oxsc\lang.inc
sizeof 11 1 4
offsetof 11 2 4
countof 11 3 4
spanof 11 3 4
bytesof 11 4 4
typeof 11 5 193
structureof 11 6 193
encodingof 11 6 193
prototypeof 11 7 193
typecodeof 11 8 4
recordof 11 9 4
widthof 11 10 4
ptrlevelof 11 11 4
metatypeof 11 12 193
strptr 11 21 8
lpartof 11 31 0
rpartof 11 32 0
vtypeof 11 33 0