Support Portal

for ProcessRobot and WinAutomation

Start a new topic
Answered

Get Subtext Action

Hi, can you please explain how the character position is defined or used in the "Get Subtext" action? I am trying to retrieve a file with a certain number in the file name.

image


Any help or assistance is appreciated.


Thanks,

-Joana P.


Best Answer

start index relative to position 0.  So, 1st character in file will be index 0, 2nd character index 1, etc


Answer

start index relative to position 0.  So, 1st character in file will be index 0, 2nd character index 1, etc

Thank you Joseph. I realized that the 1st character in the actual path to the file is what index 0 will start from. So in this case, it will be the path including the file name starting from 0 to the last position of the file extension name. For example, using C:\Users\joanap\Desktop\example.txt as the file including the path: in the actual path start from "C" will be index 0 and the "t" at the end will be index 35. Hope this helps anyone who has a similar question.

Login or Signup to post a comment