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

Announcements

News and Announcements icon
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
    155,752 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
    447 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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
Valantis Profile Picture

Valantis 483

#2
WarrenBelz Profile Picture

WarrenBelz 399 Most Valuable Professional

#3
11manish Profile Picture

11manish 327

Last 30 days Overall leaderboard