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!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

M365 768x460.jpg

Microsoft 365 Collaboration Conference | December 7–9, 2021

Join us, in-person, December 7–9 in Las Vegas, for the largest gathering of the Microsoft community in the world.

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