Hi,
I need to use a part of text but i haven't always the same number of characters.
e.s
first step: to wake up
second step: to wash hands
third step: to get dressed
I need to use the part of the sentence before of ":"
like this
first step
second step
third step
I need something like "substring(text,1,index of ":")"
Could you help me?
thanks
Substring parameterized
- Fabio Pagano
- Posts: 355
- Joined: Mon Apr 16, 2007 12:38 pm
- Location: Bari (Italy)
-
- Posts: 6812
- Joined: Tue Mar 20, 2018 5:34 am
Re: Substring parameterized
Hello,
You can use the following expression:
{(Variable.IndexOf(":") != -1 ? Substring(Variable, 1, Variable.IndexOf(":") - 1) : "")}
Thank you.
You can use the following expression:
{(Variable.IndexOf(":") != -1 ? Substring(Variable, 1, Variable.IndexOf(":") - 1) : "")}
Thank you.
- Fabio Pagano
- Posts: 355
- Joined: Mon Apr 16, 2007 12:38 pm
- Location: Bari (Italy)
Re: Substring parameterized
Great! Thank You
Re: Substring parameterized
You are welcome, Fabio!