Jump to content

Split Sting


---
 Share

Recommended Posts

I have a string that has 5 elements separated by a "|".  I am trying to split this up and have 5 text boxes to put them into to format (make it look pretty) on the report instead of trying to do it with PCM in calypso.... basically a header variable in 5 chunks separated by a  "|"  and want to have 5 boxes  to put each chuck into it.  I have search but cant find this topic (maybe i missed it).   It would be easier if PiWeb had a strElement() like PCM......

Link to comment
Share on other sites

You can divide your text by a divider - it should be in string section. It will give you a list, from which you can extract N-th item.
Function "Trim" will remove your whitespaces if you have them at separators

So here is a sample:

  1. String operations -> Split string by separator
  2. List operations -> N-th item ( first item starting by "0" )

Here is a sample code: Result: "Your"

Please sign in to view this quote.

 

  • Like! 1
Link to comment
Share on other sites

 Share

×
×
  • Create New...