03-19-2005, 11:01 PM
This routine (in c) isn't worth a whole DLL to itself, but if someone has room (or needs it) in a library, feel free to add it.
I used this command in VB a lot and thought it'd be nice to have in FB.
Code:
int IsNumeric(char *pString){
char *pEnd;
double dbl;
dbl = strtod (pString,&pEnd);
if (pString != pEnd && *pEnd == '\0'){
//it is numeric
return 0;
}
else{
//it isn't
return -1;
}
}
I used this command in VB a lot and thought it'd be nice to have in FB.