Hi,
I'm trying to take a string and add each of it's characters to a collection.
So for string
TEST STRING
I would populate a collection with
Record 1 - T
Record 2 - E
Record 3 - S
etc.
Any ideas?
Solved! Go to Solution.
Hi!
Have you considered using the Split() function, this will split the text into single characters if you use the separator of "" rather than an actual text value.
ClearCollect(ThisCollection, Split(TextToSeparate, "") );
Could you give that a try and let me know if you run into any issues?
Thanks,
Sancho
@iAm_ManCat |
Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you! |
Thanks! |
Hi!
Have you considered using the Split() function, this will split the text into single characters if you use the separator of "" rather than an actual text value.
ClearCollect(ThisCollection, Split(TextToSeparate, "") );
Could you give that a try and let me know if you run into any issues?
Thanks,
Sancho
@iAm_ManCat |
Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you! |
Thanks! |
Thanks @iAm_ManCat - works perfectly. I never thought of using Split with an empty string - though I did see in the Microsoft help Docs for Split.. 🤔😁
Glad I could help, I've had to use it again recently so it was fresh in my mind 😺
Hope you have a great day!
@iAm_ManCat |
Please 'Mark as Solution' if someone's post answered your question and always 'Thumbs Up' the posts you like or that helped you! |
Thanks! |
Stay up tp date on the latest blogs and activities in the community News & Announcements.
Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST
Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.
User | Count |
---|---|
203 | |
187 | |
81 | |
50 | |
37 |
User | Count |
---|---|
294 | |
248 | |
123 | |
74 | |
55 |