Hello, i want to transform a string in to a number may i use de function CHAR$
and hoiw to use char$.
Best regards
J-M
function CHAR$
- Benj
- Matrix Staff
- Posts: 15312
- Joined: Mon Oct 16, 2006 10:48 am
- Location: Matrix TS Ltd
- Has thanked: 4803 times
- Been thanked: 4314 times
- Contact:
Hello
You can use the char function to convert a single digit at a time.
For example
str1 = "1234"
num1 = '0' - (Char$(str1, 0))
num2 = '0' - (Char$(str1, 1))
num3 = '0' - (Char$(str1, 2))
num4 = '0' - (Char$(str1, 3))
num1 = 1
num2 = 2
num3 = 3
num4 = 4
You can use the char function to convert a single digit at a time.
For example
str1 = "1234"
num1 = '0' - (Char$(str1, 0))
num2 = '0' - (Char$(str1, 1))
num3 = '0' - (Char$(str1, 2))
num4 = '0' - (Char$(str1, 3))
num1 = 1
num2 = 2
num3 = 3
num4 = 4
Regards Ben Rowland - MatrixTSL
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel
Flowcode Product Page - Flowcode Help Wiki - Flowcode Examples - Flowcode Blog - Flowcode Course - My YouTube Channel