Adding Variables
February 23, 2009 12:00 AM
Could you give an example of the strange results?I think I have an idea of what's going on, though. If you set an action to Select/Change, then it will fire that action every single time you change the contents of the entry field. I demonstrated this by viewing the variable while I type in 123. The end result is 136. I believe this is because it does the following:Change to 1: Add 1 to the variable.Change to 12: Add 12 to the variable.Change to 123: Add 123 to the variable.Can you get by with a Submit button? The Submit button can run an action group that does the following in order:Set varTotal (or whatever name you gave it) to 0.Add Entry_0001 to varTotalAdd Entry_0002 to varTotalAdd Entry_0003 to varTotalChange Contents of text box to be VAR(varTotal). If you cannot do a Submit button, you can set an action on the page level to fire every 0.1 seconds to change the contents of the text box so that it has something close to real-time updating. Kevin
Discussions have been disabled for this post