08-02-2010, 11:17 PM
I don't understand exactly what you are trying to do, but I understand the error. The function GetFileList doesn't return a string but a list of strings meaning a collection of strings. So, you can't concatenate a string with a list. However, if you wanted to do the SendData for each item in the GetFileList here is the correct code:
I hope this helps.
Code:
For Each str as String in GetFileList(SplitData(1)) 'we loop through all items in the list returned by GetFileList
SendData("Add|" & str) 'we call SendData individually for each item
Next