i get an wp-load-file was not found(293) error when executing this code. wp-load-file is used in a SYSTEM-DIALOG and return the full path for the file including file name. I have confirmed this with an ALERT-BOX
INPUT FROM wp-load-file CONVERT TARGET "UTF-8" SOURCE "UTF-8" NO-ECHO.
REPEAT:
CREATE PARAM_tt_nice_convention.
IMPORT DELIMITER ",":U PARAM_tt_nice_convention.
END.
INPUT CLOSE.
How ever if i replace wp-load-file with a hardcoded string pointing to the exact same path, it works files.
INPUT FROM "C:\temp\excelFile.csv" CONVERT TARGET "UTF-8" SOURCE "UTF-8" NO-ECHO.
REPEAT:
CREATE PARAM_tt_nice_convention.
IMPORT DELIMITER ",":U PARAM_tt_nice_convention.
END.
INPUT CLOSE.
I have confirmed that wp-load-file give tha exact same path.
Thanks in advance for the help.
Try INPUT FROM VALUE(wp-load-file). Without VALUE it tries to open a file named wp-load-file instead of the value of the variable.
Try INPUT FROM VALUE(wp-load-file). Without VALUE it tries to open a file named wp-load-file instead of the value of the variable.
YES!! THANKS!!! i knew it wasnt much. thanks a bunch
|
||||
Brian Maher
|
||||
Principal Engineer, Technical Support
|
||||
Progress
|
||||
14 Oak Park | Bedford, MA 01730 | USA
|
||||
|
||||
|