Announcements
Hi All,
I wana split and increment my number in every click of button.
Suppose ID=RRN0121, when I click button ,it increment like this , RRN0121.01,RRN0121.02 .....and so on
how we achieve this , I tried with split but not success
Thanks,
hi @Chitrakant27
Your question is not compltely understood, here is a way to increment a variable.
UpdateContext({_number: _number + 1})
UpdateContext({ someVariable: ID & "." & _number})
Result
Having the ID you do not need to split it. Can you give more information on your use case, will you be saving the incremented value etc.?
Hope it helps,
R
Hi @rubin_boer ,
I am using same but it will increment like RRN0126.1, RRN0126.2and so on
I need RRN0126.01,RRN0126.02,RRN0126.03.....
Hi @Chitrakant27,
Do you want to increase the RRN by 0.01 once you click the button?
Here is a simple demo for your reference:
1). Create a variable as below to extract the number within, note I display this RRN number within a TextInput:
Set(varID,Value(Substitute(TextInput9.Text,"RRN","")))
I usually put this formula on the OnVisible property of the current screen.
2). Format the RRN number by the concatenate() function as below:
Concatenate("RRN",Text(varID,"0000.00"))
Under review
Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 329 Most Valuable Professional
11manish 209 Super User 2026 Season 2
Mohsin Ali 179