Quantcast
Channel: Microsoft Dynamics NAV
Viewing all articles
Browse latest Browse all 64865

Forum Post: Adjusting File Names

$
0
0
In This Function. I am finding any files in that folder. I then need to add the File Names to a table. Then with these files names in the table I Need to trim the name down from WBTCH-001007 - 20160920_140517 to Just WBTCH-001007. Whats a good way to do this! thanks objFiles.RESET; objFiles.SETFILTER(Path, '%1', recManufacturingSetup.AegisFolderPackoutRoot); objFiles.SETFILTER(Name, '@*xml'); objFiles.SETRANGE("Is a file", TRUE); // record files for processing to avoid delays in updating File System records IF objFiles.FINDSET(FALSE, FALSE) THEN REPEAT recAegisPackoutImport.Filename := objFiles.Name UNTIL objFiles.NEXT =0; PackoutFileName := //Get File Name and Shrink it to just WBTCH-001007

Viewing all articles
Browse latest Browse all 64865


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>