Substring operations

HI Team,

I have a line like below
ABC DEF IJK

I want to store IJK in a variable
and DEF in another variable.
Sometime ABC will display in this line or it may be blank also like below
ABC DEF IJK
DEF IJK

Hi @Robotics

use assign activity str=“ABC DEF IJK” and use write line str.split(" “c)(1) and str.split(” "c)(2)
and you will get the DEF IJK.

image

Regards,
Kommi Jeevan

Hi @Robotics
Split(“YourString”," “)(0) - ABC
Split(“YourString”,” “)(1) - DEF
Split(“YourString”,” ")(2) - IJK

Hope it helps :slight_smile:

@Robotics,

Check this xaml,

Test.xaml (5.4 KB)

Hi,
Try this one

Thanks its working fine now

@Robotics Cheers

If you got solution, please also make sure to mark my answer as the solution.