Loop all the characters in a string and check if they are 0-9/A-F?
Sec, whipping up a small example.
-EDIT-
Ok here it is.
function checkHex(%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 A B C D E F"))
{
return 0;
}
}
return 1;
}
function isInCharList(%char,%list)
{
%cnt=getWordCount(%list);
for(%i=0;%i<%cnt;%i++)
{
if(%char$=getWord(%list,%i))
{
return 1;
}
}
return 0;
}
Usage example:
checkHex("51FYD"); //returns 0
checkHex("63AF"); //returns 1