cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Cyberboon
Regular Visitor

ฺBasic code not working [ Fill color ]

Dear Sir, 

 

   I tries to create button to fill color in Icon but this command is not working when preview and click button.

 

How to solve this problem ? 

 

Thanks, PWA.PNG

2 ACCEPTED SOLUTIONS

Accepted Solutions
v-bofeng-msft
Community Support
Community Support

Hi @Cyberboon ,

 

The key is that we cannot use = to assign values to control properties, but we can use variables to pass values.

 

You could try:

 

Set Icon4 ' s Fill property to :

 

 

DefaultColor

 

 

 

Set the button 's OnSelect property to:

 

 

Set(DefaultColor,RGBA(255,0,0,1)

 

 

 

Best Regards,

Bof

View solution in original post

eka24
Super User
Super User

On the OnSelect of the Button create a variable:

Set(varColor,Red)

 

Then in the fill property of the Icon;

varColor

 

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

View solution in original post

2 REPLIES 2
v-bofeng-msft
Community Support
Community Support

Hi @Cyberboon ,

 

The key is that we cannot use = to assign values to control properties, but we can use variables to pass values.

 

You could try:

 

Set Icon4 ' s Fill property to :

 

 

DefaultColor

 

 

 

Set the button 's OnSelect property to:

 

 

Set(DefaultColor,RGBA(255,0,0,1)

 

 

 

Best Regards,

Bof

eka24
Super User
Super User

On the OnSelect of the Button create a variable:

Set(varColor,Red)

 

Then in the fill property of the Icon;

varColor

 

------------

If you like this post, give a Thumbs up. Where it solved your request, Mark it as a Solution to enable other users find it.

Helpful resources

Announcements
Microsoft 365 Conference – December 6-8, 2022

Microsoft 365 Conference – December 6-8, 2022

Join us in Las Vegas to experience community, incredible learning opportunities, and connections that will help grow skills, know-how, and more.

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