I kindly ask you to help me unravel the following issue.
In my media folder I have tab-delimited text files (one for each subject) with all the necessary columns and rows to load into my list.
When I hard-code the path of one files into the list's properties 'Filename' field, all works fine. But I don't like to hard code the path every time I have another subject coming in, and I have the subject identifier at the start anyway, so I defined the path+filename as a string variable and saved it in the attributes table.
In the 'Filename' field I now have [myPath], but the task crashes... I checked with Debug.Print whether the variable is correct, and I can't understand what's wrong.
Dim myPath As String
myPath = "media/" & c.GetAttrib("Subject") & ".txt"
c.SetAttrib "myPath", myPath
Thank you for your help!
Please sign in to leave a comment.