PDA

View Full Version : Perform Calculation



Bob Golightly
05-09-2002, 09:31 AM
Just updated to 7.01 and on exploring Perform Calculation options I've been unable to get the 'Add' function to work.

Using three Edit Field objects, I can multiply, subtract and divide inputs and display the result. However, the 'Add' function seems to regard the inputs as strings and adds these together, e.g. 4 + 3 = 43

Please advise,
Bob

Shawna
05-09-2002, 09:52 AM
Bob,

In the Edit Field properties, the Object Styles tab has a Format option with a drop down menu. If you change the format from Any to Number, then DemoShield will recognize the input as numbers only and the addition will work correctly.

The add operation works differently because we wanted to have the ability to also add string. For example, if you had Edit Fields to ask for a user's first and last name, you can then use the Perform Calculation to add the two and display thier first and last name together. Just wanted to throw that in as a clarification for why it was not working.

Bob Golightly
05-13-2002, 10:34 AM
Many thanks,

Bob