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
↧