Try OpenEdge Now
skip to main content
Developing WebSpeed Applications
SpeedScript : WebSpeed preprocessors
 

WebSpeed preprocessors

The preprocessor is a function of the Progress ABL compiler that also applies to SpeedScript. On its initial pass through source code, the compiler looks for preprocessor directives and performs text substitutions when it finds them. All directives begin with an ampersand (&).
The WebSpeed preprocessors, which are listed in the following table, provide consistent access to the Web environment, especially the Web output stream. The definitions of WebSpeed preprocessor names reside in install-path/src/web/method/cgidefs.i.
Table 1. WebSpeed preprocessors
Preprocessor name
Assigned value
&WEBSTREAM
STREAM Webstream
&OUT
PUT {&WEBSTREAM} UNFORMATTED
&OUT-FMT
PUT {&WEBSTREAM}
&OUT-LONG
EXPORT {&WEBSTREAM}
&DISPLAY
DISPLAY {&WEBSTREAM}