Consultor Eletrônico



Kbase P25593: SEARCH function fails after some time
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   21/05/2003
Status: Unverified

FACT(s) (Environment):

Progress 9.x

SYMPTOM(s):

SEARCH function fails after some time

SEARCH function returns null but the file exists in the current directory

CAUSE:

Reporter VPE OCX changes the session current directory

FIX:

Step 1: Replace the '.' entry in the PROPATH for the working directory full path and store the new PROPATH value in a global variable:

DEFINE VARIABLE gcPROPATH AS CHARACTER NO-UNDO.
DEFINE VARIABLE cWorkDir AS CHARACTER NO -UNDO.

ASSIGN FILE-INFO:FILE-NAME = "."
cWorkDir = FILE-INFO:FULL-PATHNAME
gcPROPATH = REPLACE(PROPATH, ".", cWorkDir).


Step 2: After the OCX is used restore the PROPATH value using the following line:

ASSIGN PROPATH = gcPROPATH.