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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (68,209)