I want to display "and" in the given statement by using split function can tell me the code for it?

@Swagasmini_Jena

Do you want to split the above text based on and as delimiter ?

If yes then try below one. First assign above value to one String variable.

     inputStr.Split("and"c)
1 Like

how can we index it?

the string is in status variable so it is status,inputStr.Split("and"c)

status.Split({“Successful”,“record”},StringSplitOptions.None
what will this give?

@Swagasmini_Jena

status.Split("and"c)(0) - “variable created operation successful”

status.Split("and"c)(1) - “record no is created”

1 Like

This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.