PreviousNextIndex

KEYWORD-ALL function

Returns a character value that indicates whether a string is an ABL keyword. This function returns all keywords and does not distinguish between reserved or unreserved keywords.

Syntax

KEYWORD-ALL ( expression ) 

expression
Example

In this example, the KEYWORD-ALL function tests the value of formname. If the user tries to use a keyword as a form name, the AVM displays a message to try again.

r-keywda.p
DEFINE VARIABLE formname AS CHARACTER NO-UNDO FORMAT "x(20)". 
REPEAT ON ERROR UNDO, RETRY: 
  UPDATE formname. 
  IF KEYWORD-ALL(formname) NE ? THEN DO: 
    MESSAGE formname + "cannot be used as a form name". 
    UNDO, RETRY. 
  END. 
  ELSE LEAVE. 
END. 

Notes
See also

KEYWORD function


OpenEdge Release 10.2B
Copyright © 2009 Progress Software Corporation
PreviousNextIndex