I have multiple PDFs in 1 Folder, then the PDF name are in format (Ex: 008-088-888-20191219 101050.pdf), How To Split the PDF File Name “-” and get the third result?
As you are getting the error because you are splitting which will give Array of String(String), but WorkDayID is type of single string, so you have to declare a temporary variable like
TempWorkDayID - String
WorkDayID - String
You have to assign WorkDayID - TempWorkDayID(Index).Tostring