Kbase P25105: Using message command with update variable clause is not upd
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  8/22/2003 |
|
Status: Unverified
SYMPTOM(s):
Using message command with update variable clause is not updating the variable
define variable respuesta as logical
message "¿Do you want the result?" VIEW-AS ALERT-BOX QUESTION
BUTTONS YES-NO TITLE "" UPDATE respuesta AS LOGICAL.
message respuesta view-as alert-box
CAUSE:
AS <datatype> in the UPDATE clause only has to be used when the variables has not previously defined.
From the Message statement help:
AS datatype
Defines field as a variable of type datatype. You must use this option
or the LIKE option if field has not been previously defined.
FIX:
Don't use AS <datatype> with the UPDATE clause in the MESSAGE statement if the variable has been previously defined.