Page 1 of 1

Substring / IndexOf - Get Data In Middle Of String

Posted: Wed May 15, 2024 8:03 am
by nathan
Good morning,

We are using Stimulsoft Report.Net 2016.3. One of our requirements is to print a piece of data on the report that is contained in a field between delimiters. For example

Code: Select all

DATA1~DATA2~DATA3~DATA4~
If I wish to print only DATA3, I and I know that it will always be in between the second and third '~' delimiter, is there a function, or combination thereof, that will achieve this?

Many thanks for any suggestions!

Re: Substring / IndexOf - Get Data In Middle Of String

Posted: Wed May 15, 2024 8:34 am
by Lech Kulikowski
Hello,

You can try to use Split() method.

Thank you.