cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ralino
Frequent Visitor

Increment value of label

Hi Dears

 

I have a label with default value, want to have possibility to increment or decrement the value. any clue please

 

Thanks

6 REPLIES 6
RezaDorrani
Dual Super User II
Dual Super User II

Hi @Ralino 

 

Lets say you have a variable which contains the default value

OnVisible of screen - Set(varCounter,0)

 

On button click for increment Set(varCounter,varCounter+1)

On button click for decrement  Set(varCounter,varCounter-1)

 

The label text property set to varCounter

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

 

Thank you Rezadorrani

 

It worked for 1 Label.

What about please if you have more than 1 label to be incremented separatly. any clue?

 

Thanks

RezaDorrani
Dual Super User II
Dual Super User II

Hi @Ralino 

 

How many such labels are there?

You can create multiple variables or use concept of gallery to define the values for collections

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Thanks You dear

Can you pelase be more specific on how to make it as i'm fresh to powerapp indeed 🙂

 

Thanks i nadvance

Ralino
Frequent Visitor

...Let's consider 5 Labels to be incremented

RezaDorrani
Dual Super User II
Dual Super User II

Hi @Ralino 

 

Then just create 5 variables

 

--------------------------------------------------------------------------------
If this post helps answer your question, please click on “Accept as Solution” to help other members find it more quickly. If you thought this post was helpful, please give it a Thumbs Up.

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

Top Solution Authors
Top Kudoed Authors
Users online (2,231)