Well, to do this you would loop every word of the parameter after the first, check if it is a numerical value and store the words after it that are not numerical values.
I'd use an array like:
$Event_List[eventname,id]=returnvalue
Then as the function:
function getEvList(%eventname,%id)
{
return $Event_List[%eventname,%id];
}
An edited version of my checkHex function:
(uses a support function)
function isInCharList(%char,%list)
{
%cnt=getWordCount(%list);
for(%i=0;%i<%cnt;%i++)
{
if(%char$=getWord(%list,%i))
{
return 1;
}
}
return 0;
}
function checkNum(%str)
{
%cnt=strLen(%str);
for(%i=0;%i<%cnt;%i++)
{
%sub=getSubStr(%str,%i,1);
if(!isInCharList(%sub,"0 1 2 3 4 5 6 7 8 9"))
{
return 0;
}
}
return 1;
}
If you have no idea on how to use that:
checkNum("123") returns 1
checkNum("wat") returns 0
checkNum("w4t") returns 0
I guess you can figure out the rest now...?