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
Variable in CirculoBuffer
Moderator: Benj
-
- Posts: 311
- Joined: Sat Jan 12, 2008 2:08 am
- Has thanked: 104 times
- Been thanked: 47 times
- Contact:
- 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
Hello,
At the top of your program you have this code.
this will store the value 3000 in the variable Value.
The next line of code is.
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.
This does the calculation of value / 3 and then converts the result into a string to store into the password variable.
At the top of your program you have this code.
Code: Select all
Value = 6000 / 2
The next line of code is.
Code: Select all
Password = "Value / 3"
To do this correctly try this instead.
Code: Select all
Password = ToString$(Value / 3)
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
-
- Posts: 311
- Joined: Sat Jan 12, 2008 2:08 am
- Has thanked: 104 times
- Been thanked: 47 times
- Contact:
Re: Variable in CirculoBuffer
Thanks Benj, for the help, in the display showing the operation: value / 3 but not the result, I now understand
Enrique
Enrique