Kbase P7952: Syntax error using spell-weekday
Autor |
  Progress Software Corporation - Progress |
Acesso |
  Público |
Publicação |
  3/24/2003 |
|
Status: Unverified
FACT(s) (Environment):
Progress/WebSpeed Versions
SYMPTOM(s):
Syntax error using the function spell-weekday
** Unable to understand after -- "SPELL-WEEKDAY". (247)
CAUSE:
SPELL-WEEKDAY() function can be used in Report Builder only.
FIX:
/* The following code can be used in 4GL instead of SPELL-WEEKDAY() function */
DEFINE VARIABLE cDays AS CHARACTER INITIAL "Sunday,Monday,Tuesday,Wednesday,Thursday,Friday,Saturday":U NO-UNDO.
FOR EACH invoice:
DISPLAY invoice.Invoicedate ENTRY(WEEKDAY(invoice.InvoiceDate), cDays).
END.