cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
tugba
Helper I
Helper I

Label.Text

Hello ı want to write 2 codes to one label for example

Label.Text = name.SelectedText.Value+ surname.SelectedText.Value

How can ı write like that

Tugba

1 ACCEPTED SOLUTION

Accepted Solutions
yashag2255
Dual Super User II
Dual Super User II

Hi @tugba 

 

You need to update the "Text" property of your label to:

 
name.SelectedText.Value&" "&surname.SelectedText.Value

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

2 REPLIES 2
yashag2255
Dual Super User II
Dual Super User II

Hi @tugba 

 

You need to update the "Text" property of your label to:

 
name.SelectedText.Value&" "&surname.SelectedText.Value

 

Hope this Helps!

 

If this reply has answered your question or solved your issue, please mark this question as answered. Answered questions helps users in the future who may have the same issue or question quickly find a resolution via search. If you liked my response, please consider giving it a thumbs up. THANKS!

View solution in original post

LRVinNC
Super User
Super User

Use the & (and) to join your strings.  

 

In the text property of the label, presuming you would like a space between name and surname, use:

name.SelectedText.Value & " " &  surname.SelectedText.Value

 

 

LRVinNC

------------------
Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

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 (37,108)