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

Indirect uses of Variable

Hi,

 

I'm studying Variables and i have a doubt. I'm trying to figure out an Indirect Use of Variable. Any example?question.png

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Power Apps
Power Apps

Re: Indirect uses of Variable

You can think of those as control properties that doesn't refer the variable directly, but if the variable is changed, then its value will need to be re-evaluated. Take the case of an app where you have a button with the following expression:

Set(i, i + 1)

And a label (let's call it Label1) with the Text property set to

i

 If you have a second label, with the Text property set to

"The value of i is " & Label1.Text

Then that property will show up as an indirect usage of the variable 'i': it is not referencing it directly, but if the value is changed, then the expression for the label's Text property will need to be re-evaluated (and possibly change)

Hope this helps!

View solution in original post

1 REPLY 1
Highlighted
Power Apps
Power Apps

Re: Indirect uses of Variable

You can think of those as control properties that doesn't refer the variable directly, but if the variable is changed, then its value will need to be re-evaluated. Take the case of an app where you have a button with the following expression:

Set(i, i + 1)

And a label (let's call it Label1) with the Text property set to

i

 If you have a second label, with the Text property set to

"The value of i is " & Label1.Text

Then that property will show up as an indirect usage of the variable 'i': it is not referencing it directly, but if the value is changed, then the expression for the label's Text property will need to be re-evaluated (and possibly change)

Hope this helps!

View solution in original post

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

Power Platform ISV Studio

Power Platform ISV Studio

ISV Studio is designed to become the go-to Power Platform destination for ISV’s to monitor & manage published applications.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Tech Marathon

Maratón de Soluciones de Negocio Microsoft

Una semana de contenido con +100 sesiones educativas, consultorios, +10 workshops Premium, Hackaton, EXPO, Networking Hall y mucho más!

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