txtFullPath := 'C:\My Documents\My Navision Exports\Daily Export.csv';
FOR i := STRLEN(txtFullPath) DOWNTO 1 DO BEGIN
IF COPYSTR(txtFullPath,i,1) = '\' THEN BEGIN
txtPath := COPYSTR(txtFullPath,1,i);
txtFileName := COPYSTR(txtFullPath,i + 1);
i := 0;
END;
END;
MESSAGE('Path: %1',txtPath);
MESSAGE('Filename: %1',txtFileName);
No support using PM or e-mail - Please use this forum. BC TechDays 2024: 13 & 14 June 2024, Antwerp (Belgium)
Answers
RIS Plus, LLC
MVP - Business Apps