Subtract from string variable

A solution to part of this and then two questions.SOLUTION TO ADDING NUMBERS LIKE A STRING Instead of trying to do character addition where it adds the character to the right, use the same method used by calculators. Each time the a button is clicked, instead of just adding it, first multiply by 10. This takes two actions instead of one.On: ClickAction: Modify VariableTarget: Display_ValueValue: 10Modification Type: Multiply Variable ByOn: ClickAction: Modify VariableTarget: Display_ValueValue: VAR(button_clicked_variable)Modification Type: Add to VariableIf you are implementing something like a calculator, when the user presses any of the action keys (+, =, X, /), you will need to move the current value in Display_Value to another location for later use.On: ClickAction: Modify VariableTarget: Hold_ValueValue: VAR(Display_Value)Modification Type: Set Variable ContentsQUESTIONSWhy do you want to trim the last character? If it is one of the action keys (+,-,..), just use a different variable.How did it get there?ben

Discussions have been disabled for this post