I am splitting a text based on a dot sometimes I get two string after splitting sometimes I get three string i am using split string option none whenever I get a blank value so it is throwing error index outside the bound of array so how to handle this

Please help if you could find a solution

Hello.

Try using try catch.

Hug

Hello @Himanshu_Vishwakarma

Just try Split(strVariabe,“.”) and assign to a string variable.

Can you share with us the text you’re trying to split?

When are you getting index out of bound exception?
You should assign the split result into a variable then probably you need to check if the length of the array is more than the required length then you can proceed with your next steps.

Hi @Himanshu_Vishwakarma,

First, check if there are any dots in the directory. If available then use the split function.

image

Regards,
MY