Here is an example from Tabax (http://axaptapedia.com/Tabax):

    FileName fullFileName(FileName _path, FileName _fileName)
    {
        FileName    pathName;
        FileName    fileName;
        FileName    fileExtension;
        ;
        [pathName,fileName,fileExtension] = fileNameSplit(_fileName);
        return _path + '\\' + fileName + fileExtension;
    }

    void findFiles(FileName _path, FileName _fileName)
    {
        FileName    fileName;
        int         hdl;
        ;
        if (WinAPI::folderExists(_path))
        {
            [hdl, fileName] = WinApi::findFirstFile(fullFileName
(_path,_fileName));
            while (fileName)
            {
                if (WinAPI::fileExists(fullFileName(_path,fileName)))
                    addButton(fullFileName(_path, fileName), 
fileName);
                fileName = WinApi::findNextFile(hdl);
            }
            WinApi::findClose(hdl);
        }
    }
    findFiles(xInfo::directory(DirectoryType::Include)
+'Tabax\\Plugs', '*.bmp');

--- In [email protected], <[EMAIL PROTECTED]> wrote:
>
> Hi all, 
> 
> i need help to find Example Axapta Code which is read all file in 
folder ( List File in Folder ). i already using COM, but i stuck 
too, please help me. Thanks
> 
> 
> 
> Thanks,
> Ivan Widjaksono
> 
> 
> 
> 
>  
> 
_____________________________________________________________________
_______________
> Cheap talk?
> Check out Yahoo! Messenger's low PC-to-Phone call rates.
> http://voice.yahoo.com
>


Reply via email to