Hello,
Looking for some help with the Crimson function TexttoInt.
It seems to be pretty straight up...but maybe im missing something.
Description: Returns the value of string,treating it as a number of base radix. This function is also used together with mid to extract values from strings received from raw serial ports. It can also be used to convert other string values to integers.
Ex: data = TextToInt("1234",10)
So just as a test I set up:
This should return 65 as Ascii code for A but it returns a 0.
If you change the radix to 128 it returns a 10. So it seems
like its trying to do something...not sure what.
Any help would be greatly appreciated
Looking for some help with the Crimson function TexttoInt.
It seems to be pretty straight up...but maybe im missing something.
Description: Returns the value of string,treating it as a number of base radix. This function is also used together with mid to extract values from strings received from raw serial ports. It can also be used to convert other string values to integers.
Ex: data = TextToInt("1234",10)
So just as a test I set up:
Code:
Data:=
TextToInt("A"),10);
If you change the radix to 128 it returns a 10. So it seems
like its trying to do something...not sure what.
Any help would be greatly appreciated