>>while ((fileName = this.PopQueue(path, filter)) != "" && llSuccess) >>{ >> // Do all my stuff here, process each file returned until no more files are returned. >>} >>>This line while ((fileName = this.PopQueue(path, filter)) != "" && llSuccess)
>string fileName;
>
>fileName = this.PopQueue(path, filter);
>
>while (fileName !="" && llSuccess)
>(
> fileName = ..;
> do stuff
>}
>
>>
The problem with this Naomi is the fileName variable would never change since it occurs prior to the while loop. I need to reset fileName as what drives the loop. I agree it is a bit funky to read but why does fileName get set to "" and then be null when it gets back to here? I don't understand that.
TimTimothy Bryan