Try OpenEdge Now
skip to main content
Object-oriented Programming
Programming with Class-based Objects : Using preprocessor features in a class : Using compile-time arguments
 

Using compile-time arguments

Compile-time arguments are a mechanism to pass compile-time values to an external procedure file or an include file. This facility is not supported for classes but is supported by include files referenced by a class, as shown:
CLASS Test:
  CONSTRUCTOR PUBLIC Test (INPUT in AS INTEGER):
    {build-info.i &build-num=num &build-date=today}  END CONSTRUCTOR.
END CLASS.
This is the contents of build-info.i:
MESSAGE {&build-num}
        {&build-date}
        VIEW-AS ALERT-BOX.