Split String and assign the left characters before Delimiter

Hi Everyone,

How we can split by delimiter of “-” for each row in Item Code by using assign activity

I am using row.item(“item code”) = row.item(“item code”).Tostring.split(“-”) and want to get the LEFT side value before delimiter

Any suggestions to achieve this please.

Regards
Vishnu
rowstosplit

Hi

arrayVariavle = String.Split("-"c)

This will give you an array, so if you split “1001-103”, you can access these from index like

arrayVariable(0) 

will give you 1001 and

arrayVariable(1)

will give you 103

Thanks,
Prankur

4 Likes

Thank you so much for explaining Joshi, well understood the bot doing exactly as trained :slight_smile:

Regards
Vishnu

1 Like

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