Displaying Variables
June 1, 2006 12:00 AM
SOLUTION TO #2. Let's say Text box #1 is where you want to display what is being typed into Entry Box #1 with an associated variable of input_0001. On the On Select/Change tab in the entry box, have an action to Change Contents of Text box 1:Action: Change Contents; Target: Text Box 1; Value: input_0001This completely redisplays what ever has been typed in in the entry box.Now, as to #1, if you are wanting to simulate a calculator, forget strings and use math. If the user types in 1 than then next time a 2 and you want it to display 12 instead of three, just take the 1 and multiply by 10 before adding the 2. But try the solution to #2 first before you go to all this trouble. If you still need this then the actions look like assuming you have a variable called xx to keep the displayed total in and yy is the variable coming off some kind of a keypad with 10 buttons on it. Each button would set the value of yy to a different value and then run the below action group.Action: Modify Variable; Target: xx; Value: 10; Modification type: MultiplyAction: Modify Variable; Target: xx; Value: var(yy); Modification type: AddAction: Change Contents; Target: Text Box 1; Value: xxcheers, ben
Discussions have been disabled for this post