Variable in CirculoBuffer

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

Moderator: Benj

Post Reply
electron67
Posts: 311
Joined: Sat Jan 12, 2008 2:08 am
Has thanked: 104 times
Been thanked: 47 times
Contact:

Variable in CirculoBuffer

Post by electron67 »

Hello everyone, I have a question, you can do math and use a variable applying it to ciculo buffer? ( addition, subtraction, multiplication, division ) :?:

Thank you
Enrique
Attachments
CiculeBuffer.fcfx
(7.16 KiB) Downloaded 208 times

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:

Re: Variable in CirculoBuffer

Post by Benj »

Hello,

At the top of your program you have this code.

Code: Select all

Value = 6000 / 2
this will store the value 3000 in the variable Value.

The next line of code is.

Code: Select all

Password = "Value / 3"
This will fix the password variable with the fixed string "Value / 3" and won't do as your expecting which is to load 1000 as a string into password.

To do this correctly try this instead.

Code: Select all

Password = ToString$(Value / 3)
This does the calculation of value / 3 and then converts the result into a string to store into the password variable.

electron67
Posts: 311
Joined: Sat Jan 12, 2008 2:08 am
Has thanked: 104 times
Been thanked: 47 times
Contact:

Re: Variable in CirculoBuffer

Post by electron67 »

Thanks Benj, for the help, in the display showing the operation: value / 3 but not the result, I now understand

Enrique

Post Reply