Need To Split A Number In A String

Hi,

Input - 123456789
Output - 456

Suggest me a logic to complete this.

Thanks,
Rishi

@Putta_Sri_Sai_Rishik_Chow

do you always want to extract the 4th-6th digits?

Yes Jack :slight_smile:

@Putta_Sri_Sai_Rishik_Chow

You can try this

Str.SubString(3,3)

Str is variable where your string is stored

Cheers

Hi @Putta_Sri_Sai_Rishik_Chow

Use String.Substring(3,3)

Let’s say num is your variable, you can use num.Substring(3,3)

Hope this helps,
Best Regards.

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