46
Views
3
Comments
string split delimiter
Question

HI,

Suppose my string is 123T456 and I am using string split and in delimiter I have set T but suppose string not containing T then how I can handle this 

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

Hi Vivek,

I'm not sure I understand what you mean. You can split a string into a list by using String_Split from the Text extension, but of course you need a delimiter. Alternatively, if the string's you're after have a fixed position, use the built-in Text function Substr.

UserImage.jpg
Vivek Pandile

No fix position just need to handle if delimiter is not present in text if delimiter is not present then code will crash rt?

2020-09-15 13-07-23
Kilian Hekhuis
 
MVP

No, if there's no delimiter you only have a single token, so your String_Split result list will contain only one item.

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.