hello i have text : 1+1 or 2+1 or 2+1 that doesnt matter how i convert him to full answer in numbers?
i mean i have 1+1 in field 1,how i am making field 2 to show 2,and not 1+1?
thank you!
text to num
Moderators: FourthWorld, heatherlaine, Klaus, robinmiller
Re: text to num
Hello TheRedLord,
welcome to the forum!
Not sure I understand, but looks like you mean something like:
Best
Klaus
welcome to the forum!
Not sure I understand, but looks like you mean something like:
Code: Select all
...
## fld 1 -> 1+1
put VALUE(fld 1) into fld 2
## fld 2 -> 2
...
Klaus
-
- Posts: 12
- Joined: Mon Dec 03, 2018 8:51 pm
Re: text to num
wow! thank you very much! you helped me a lot !!!!!
its exactly how i wanted it!
its exactly how i wanted it!
-
- VIP Livecode Opensource Backer
- Posts: 9726
- Joined: Wed May 06, 2009 2:28 pm
- Location: New York, NY
Re: text to num
What you are asking is how to make "1 + 1" evaluate itself.
Klaus has given you the short correct answer.
I would suggest that you change the way that information was entered into the field in the first place. In other words, do not leave such expressions the way you did, rather have the user enter those two numbers, and manage their sum in the program.
Just a suggestion...
Craig Newman
Klaus has given you the short correct answer.
I would suggest that you change the way that information was entered into the field in the first place. In other words, do not leave such expressions the way you did, rather have the user enter those two numbers, and manage their sum in the program.
Just a suggestion...
Craig Newman