Help! I'm trying to using the FileSystemObject automation thingy, and I'm doing fine until I get to the bit where I'd normally do a For Each file In folder loop. How do I do this in C/AL?
fso is FileSystemObject
CREATE(fso);
objFiles := fso.GetFolder('C:\Folder').Files;
FOR EACH objFile In objFiles DO; ???? what should this be?
MESSAGE(objFiles.Item().Name);
0
Comments
There is no "for each" in Navision.
Anyway, to operate on file lists, you can use the virtual file table. You can use this table as a normal Navision table.
Hope this helps
http://www.mibuso.com/forum/viewtopic.php?t=1633
Eric Wauters
MVP - Microsoft Dynamics NAV
My blog