Does the axapta Winapi library have a method which show the files in a folder so that they can be traveresed and displayed in a form and then also deleted?
Thanks
Does the axapta Winapi library have a method which show the files in a folder so that they can be traveresed and displayed in a form and then also deleted?
Thanks
Hi,
What time of files do you want to display? Can you try something like this -
int handle;
fileName fileName;
[handle, fileName] = WinAPI::findFirstFile("C:\\*.txt");
while (fileName)
{
info (strfmt("File name is %1", fileName));
fileName = winAPI::findNextFile(handle);
}
winAPI::findClose(handle);
Hope this helps,
Harish
Thanks