cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
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.

 

Highlighted
Frequent Visitor

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

Highlighted
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.

Highlighted
Frequent Visitor

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

Highlighted
Frequent Visitor

Re: Increment value of label

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

Highlighted
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
Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (7,068)