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

Concatenate strings with different colors

Hello, 

 

I have a very simple question, how to concatenate strings values and have them displayed in different colors in a label. 

Example:

Concatenate("Test1","Test2")

 

How do I get Test1 to display Red and Test 2 to display Blue both in the same label?

 

Thanks!

1 ACCEPTED SOLUTION

Accepted Solutions
RandyHayes
Super User III
Super User III

@sharpmachine555 

You cannot do this in a Label.  A label only is one color.

 

You could use an HTML text control however.  In which case your HtmlText property would be this:

"<font color=red>Test1</font><font color=blue>Test2</font>"

This will give you what you are looking for.

 

I hope this is helpful for you. 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

2 REPLIES 2
RandyHayes
Super User III
Super User III

@sharpmachine555 

You cannot do this in a Label.  A label only is one color.

 

You could use an HTML text control however.  In which case your HtmlText property would be this:

"<font color=red>Test1</font><font color=blue>Test2</font>"

This will give you what you are looking for.

 

I hope this is helpful for you. 

_____________________________________________________________________________________
Digging it? - Click on the Thumbs Up below. Solved your problem? - Click on Accept as Solution below. Others seeking the same answers will be happy you did.
Check out my PowerApps Videos too! And, follow me on Twitter @RandyHayes

View solution in original post

Thanks!

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Did you miss the call? Check out the recording here!

Top Solution Authors
Top Kudoed Authors
Users online (69,476)