How to take last second character in a line
I have many values with space split , I am not able to used (-2) also
Please help
How to take last second character in a line
I have many values with space split , I am not able to used (-2) also
Please help
Hey @Kuldeep_Pandey ,
lastSecondChar = line.Substring(line.Length - 2, 1)
Try this
Assuming you have a line of text stored in a variable called line
lastSecondCharacter As Char = line.Substring(line.Length - 2, 1)
Its giving me last digit no
like i have 12323 98656 acghfd -1787 8889
I want -1787
=> Assign -> StrVar = "12323 98656 acghfd -1787 8889"
=> Assign -> Output = StrVar.Split(" ")(3).Split(" ")(0)
Check the below workflow for better understanding
Hope it helps!!
This topic was automatically closed 3 days after the last reply. New replies are no longer allowed.