Consultor Eletrônico



Kbase P24060: Calling _setcurs.r doesn´t change the cursor form without an
Autor   Progress Software Corporation - Progress
Acesso   Público
Publicação   5/2/2003
Status: Unverified

FACT(s) (Environment):

Windows 32 Intel

FACT(s) (Environment):

Progress 8.3x

SYMPTOM(s):

_setcurs.r doesn't work

Calling _setcurs.r doesn't change the cursor form without any error message.

CAUSE:

_setcurs.r in windows should simply execute the following:

DEFINE VAR ldummy AS LOGICAL NO-UNDO.

/* Set the Wait state, which changes the cursor automatically */

ldummy = SESSION:SET-WAIT-STATE(IF p_cursor = "WAIT" THEN "GENERAL"
                                         ELSE "" ).


p_cursor is the input string passed to the _setcurs.r procedure that could be either "WAIT" or "".
In some cases has been reported that Progress fails to execute this statement by simply ignoring it.

FIX:

explicitly use the SESSION:SET-WAIT-STATE method instead of the _setcurs.r procedure:

SESSION:SET-WAIT-STATE("general").
SESSION:SET-WAIT-STATE("").
instead of
RUN _setcurs.r ("WAIT").
RUN _setcurs.r ("").