Hi Frank,
function cvl(string s, optional sys i) as long
if i then i-=1
long v at (i+strptr s)
return v
end function
function mkl(long v) as string
function=" "
long w at (strptr function)
w=v
end function
s=mkl 42
v=cvl s
print v
'Also useful:
sub PatchLong(string s, sys i, long v)
long w at (i-1+strptr s)
w=v
end sub
s=nuls 100
patchlong s,13,42
v=cvl s,13
print v