Method to check whether string is numeric or not in MSD Axapta

Numeric validation on string value of numbers.

 boolean isNumeric(str StrNumVar)  
 {  
   boolean ret = true;  
   ;  
   ret = (strlen(StrNumVar)) == strlen(strkeep(StrNumVar,'1234567890'));  
   return ret;  
 }