How would I convert this simple routine?
function DataArrival(curUser, sData)
if ( strsub(sData, 1, 4) == "$To:" ) then
Thanx in advance.
Hi,
Fyi, new Arrivals are detailed in "Scripting-Interface.txt" in your ptokax folder.
So instead offunction DataArrival(curUser, sData)
if(strsub(sData, 1, 4) == "$To:") then
data=strsub(sData,1,strlen(sData)-1)
s,e,whoTo = strfind(data,"$To:%s+(%S+)")
you would usefunction ToArrival(curUser, sData)
s,e,whoTo = string.find(sData,"$To:%s+(%S+)")
Hope this helps ;)
Thanx a lot man :)
my pleasure ;)