I used to program in Clipper and Qbasic and in those there was a simple way to return the value of a string (if the string contains digits)
It was VAL(string) and it would return the value of "string" starting at the first character, until the last or until the first non-digit-character.
Basically it is the opposite of CHR(int)
I would like to use it to convert stored strings (in a preference file) back to its numbers.
Now I use a sub that compares and returns, but with multi-digit strings this becomes quit complex. Especially if a decimal sign is used.:BangHead:
Did I miss it? or is it not there?
And... will it be there in the future ?
Maarten
It was VAL(string) and it would return the value of "string" starting at the first character, until the last or until the first non-digit-character.
Basically it is the opposite of CHR(int)
I would like to use it to convert stored strings (in a preference file) back to its numbers.
Now I use a sub that compares and returns, but with multi-digit strings this becomes quit complex. Especially if a decimal sign is used.:BangHead:
Did I miss it? or is it not there?
And... will it be there in the future ?
Maarten