Consultor Eletrônico



Kbase P13638: Error# 293 when attempting to input data from a file that ha
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   1/30/2003
Status: Unverified

FACT(s) (Environment):

Progress 7.x

FACT(s) (Environment):

Progress 8.0x

FACT(s) (Environment):

Progress 8.1x

SYMPTOM(s):

Inputting data into Progress from a text file that contains a long file name (more than 8 characters).

** "<file-name>" was not found. (293)

CAUSE:

The 16-BIT versions of Progress do not support long file names.

FIX:

When coding a program in those versions of Progress, use the tilde character (~) in the file name so that Progress is able to find the specified file without any problems. For instance, if the name of the input file is "123456789012.txt", then use the following code to input data into Progress from it:

DEFINE VARIABLE vcTextValue AS CHARACTER NO-UNDO.
INPUT FROM VALUE("123456~~1.txt":U).
REPEAT:
IMPORT vcTextValue.
MESSAGE vcTextValue
VIEW-AS ALERT-BOX INFO BUTTONS OK.
END.
INPUT CLOSE.