cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
martinav
Super User
Super User

How to apply Value() after a Split()

I have a string list of numbers.  I need to split them, and apply Value to it.  Does this have to be done in a ForAll?  

 

Label38.Text = "1234,4321,2341"

 

This would be too easy:

 

Value(Split(TestList,Split(Label38.Text,",")))

 

 

How would I do this?

1 ACCEPTED SOLUTION

Accepted Solutions
BCLS776
Super User
Super User

Yes, since Split() produces a single column table with multiple rows, you will need some way to evaluate each row individually. A ForAll() is a good way to do this.

You can use Concat() to paste the table back into a string later if you like.

 

Hope that helps,

Bryan

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.

View solution in original post

1 REPLY 1
BCLS776
Super User
Super User

Yes, since Split() produces a single column table with multiple rows, you will need some way to evaluate each row individually. A ForAll() is a good way to do this.

You can use Concat() to paste the table back into a string later if you like.

 

Hope that helps,

Bryan

_________________________________________________________________________________________
Help the community help more users by choosing to "Accept as Solution" if this post met your needs. If you liked the post and want to show some appreciation, please give it a Thumbs Up.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on June 15, 2022 at 8am PDT.

PA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

This training provides practical hands-on experience in creating Power Apps solutions in a full-day of instructor-led App creation workshop.

PA.JPG

New Release Planning Portal (Preview)

Check out our new release planning portal, an interactive way to plan and prepare for upcoming features in Power Platform.

Top Solution Authors
Top Kudoed Authors
Users online (3,281)