UiPath get value from index

Suppose I have a string - “ABCD”

I have to get the value from index Say 2
Here index 2 means the value is C
this value is dynamic
Please suggest how to achieve this

Are you looking for this?
grafik
YourStringVar(YourIndexInt).ToString

A more defensive approach could look like this:
grafik

here we would avoid an exception when the index is greater as the length of the string

1 Like

image
You can use this method to get index value at straight, But can you please explain in what you want to extract dynamic index value

Regards
Jai

we keep in mind:
grafik

therefore we did

Sorry, what was that for Naming?

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