> Thanks, i read the .html tutorial, but i didn't find
> nothing like that.
I said: "please look in the LUA manual" - you will not
find this keywords in the PLUA manual...
Plua is port of the language LUA for PALM OS. It has
some keywords more than the standart LUA in order to
give a way to use specific functions of the device,
there is no need to put the "standard" LUA keywords in
the PLUA manual, there are to find on mamy other
places - the best one is WWW.LUA.ORG
string.sub (s, i [, j])
Returns the substring of s that starts at i and
continues until j; i and j may be negative. If j is
absent, then it is assumed to be equal to -1 (which is
the same as the string length). In particular, the
call string.sub(s,1,j) returns a prefix of s with
length j, and string.sub(s, -i) returns a suffix of s
with length i.
This is only in case if you use PLUA2 - it is LUA 5.0
on PLUA1 you have to use "strsub" (same parameters)
Very best regards
Telefonate ohne weitere Kosten vom PC zum PC: http://messenger.yahoo.de