web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / take strings when read...
Power Apps
Answered

take strings when reading a separator

(0) ShareShare
ReportReport
Posted on by 159

Hi Team.

 

I have a text string in a TextInput1 is: 25-03-2024#17:36:51#/5#84093-05500-79#41215357#2040.010#42593-40006-00###

 

I want that every time a # is found the string can be placed in a different TextInput.. for example:

 

TextInput2 = 25-03-2024

TextInput3 = 17:36:51

TextInput4 = 84093-05500-79

TextInput5 = 41215357

 

Could you help me with this idea?

Thanks in advance.

Regards.

Categories:
I have the same question (0)
  • WarrenBelz Profile Picture
    153,127 Most Valuable Professional on at

    Hi @jaimeMtz07 ,

    You should just need

    Split(
     TextInput1.Text,
     "#"
    )

    which will output a Table.

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Verified answer
    Yogesh Murugan Profile Picture
    443 Moderator on at

    Try this:

    Create a split collection - 

     

    ClearCollect(
     SplitText,
     Split(TextInput1.Text, "#")
    );

     

    Than  Retrieve that Split data

    Eg:

     

    Textinput1 : First(SplitText).Value or Index(SplitText,1).Value
    Textinput2 : Index(SplitText,2).Value
    Textinput3 : Index(SplitText,3).Value
    Textinput4 : Index(SplitText,4).Value
    Textinput5 : Index(SplitText,5).Value
    Textinput6 : Index(SplitText,6).Value

     

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 765 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 343 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 272

Last 30 days Overall leaderboard