This is a migrated thread and some comments may be shown as answers.

How to use the output of split string function

4 Answers 948 Views
General Discussions
This is a migrated thread and some comments may be shown as answers.
Ovidiu
Top achievements
Rank 1
Ovidiu asked on 21 May 2019, 07:00 PM

How to get first string from splited string?

for example str="xxx-yyy-zzz"

output is "xxx"

Thank you!

4 Answers, 1 is accepted

Sort by
1
Peter
Telerik team
answered on 24 May 2019, 10:52 AM
Hi Ovidiu,

My suggestion is to use the Item function as shown in the following example:

=Item(0, Split("-", "xxx-yyy-zzzz"))

Regards,
Peter
Progress Telerik
Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Feedback Portal and vote to affect the priority of the items
0
Roie
Top achievements
Rank 1
answered on 06 May 2020, 02:46 AM
Good day sir, my telerik doesn't have Item function.. is there any to solve the problem asked by Ovidiu
0
Roie
Top achievements
Rank 1
answered on 06 May 2020, 05:15 AM

Good day sir, my telerik doesn't have Item function.. is there any other way to solve the problem asked by Ovidiu ?

Thank you.

0
Todor
Telerik team
answered on 08 May 2020, 11:11 AM

Hello Roie,

The Item Utility Function has been introduced with Telerik Reporting R3 2018 (12.2.18.912).

If you use an older Telerik Reporting version, you may create your own User Function that splits the string and returns its first part.

Regards,
Todor
Progress Telerik

Progress is here for your business, like always. Read more about the measures we are taking to ensure business continuity and help fight the COVID-19 pandemic.
Our thoughts here at Progress are with those affected by the outbreak.
Tags
General Discussions
Asked by
Ovidiu
Top achievements
Rank 1
Answers by
Peter
Telerik team
Roie
Top achievements
Rank 1
Todor
Telerik team
Share this question
or