526
Views
4
Comments
Solved
clear the input text
Question

hai there,

I created a simple calculator in that I want to add a clear button should clear the text one by one.

arrow button perform clearing the text one by one. (i.e) if the button is pressed 5 must be clear. please give me a solution.



2023-04-07 07-55-02
Krushna Mantri
Solution

Hi Ansari,

after clicking on Clear you can assign the variable like below: 


Hope it will help you!!


Cheers,

Krushna



2020-03-05 09-05-43
Vaibhav Shukla

Hi Ansari Durai ,


On change of the action please update the text expression by using 

Substr(TextVar,0,Length(TextVar) - 1)
2023-09-28 14-21-55
Daryna Kravets

Hi Ansari,

Did you check built-in functions? 

Try to add assign with text = 

Substr(text, 0, Length(text) - 1)


Upd. Krushana, Vaibhav, you are so fast!

UserImage.jpg
Ansari Durai

thanks to everyone!

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.