cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
johnjohn123
Post Prodigy
Post Prodigy

Is there any harm if i Set variable multiple times

I have a general question, if i can set a variable at multiple places:-

 

for example when OnSelect a button >> Set(VarA,true)

 

OnSuccess of the form >> Ser (VarA,false)

 

is this fine? or the variable should be set one time and used many?

 

Thanks

1 ACCEPTED SOLUTION

Accepted Solutions
timl
Super User
Super User

@johnjohn123 

No, there's no harm in setting the same variable in multiple places.

It's common practice to do this.

View solution in original post

1 REPLY 1
timl
Super User
Super User

@johnjohn123 

No, there's no harm in setting the same variable in multiple places.

It's common practice to do this.

View solution in original post

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Power Apps Community Call Jan. 2022 768x460.png

Power Apps Community Call

Please join us on Wednesday, January 19th, at 8a PDT. Come and learn from our amazing speakers!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

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