need some help with baseConvert()

Tiemo Hollmann TB toolbook at kestner.de
Fri Oct 24 04:20:28 EDT 2014


Hello,

I am using:

put baseConvert(number,32,10) into tResult

where "number" can be numeric or alpha input by the user. When "number" is
"AB" the result is 331, ok. But when "number" is e.g. "QW" I get an error
"baseConvert can't convert this number"

I would like to check the user input for valid values which can be converted
by the function, before I  pass it to the baseConvert(), and the function
throws this error to the user.

What is the valid range for this baseConvert? Any help appreciated.

Tiemo

 

 

 

 

 

 

 




More information about the use-livecode mailing list