cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Ralino
Level: Powered On

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
Dual Super User
Dual Super User

Re: Increment value of label

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.

 

Ralino
Level: Powered On

Re: Increment value of label

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

Dual Super User
Dual Super User

Re: Increment value of label

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.

Ralino
Level: Powered On

Re: Increment value of label

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
Level: Powered On

Re: Increment value of label

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

Dual Super User
Dual Super User

Re: Increment value of label

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
thirdimage

Power Apps Super User Class of 2020

Check it out!

thirdimage

New Badges

Check it out!

thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Solution Authors
Top Kudoed Authors
Users online (5,045)