function CHAR$

For Flowcode users to discuss projects, flowcharts, and any other issues related to Flowcode 2 and 3.

Moderators: Benj, Mods

Post Reply
jeanmarc
Posts: 2
Joined: Sun Nov 04, 2007 11:57 am

function CHAR$

Post by jeanmarc »

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

User avatar
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:

Post by Benj »

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

jeanmarc
Posts: 2
Joined: Sun Nov 04, 2007 11:57 am

Post by jeanmarc »

Thanks for your Help.

Regards

J-M DE BODT

Post Reply