Servertec   pp:define( ) Method
Content
Introduction
Release Notes
Features
FAQs
Requirements
Installation
Change Log
Future Plans
Knowledge Base
Reference Manual
Conventions
iPP
Templates
Constants
Identifiers
Operators
Directives
Macros
Java API
pp( )
displayLogo( )
embeddedQuotes( )
removeBlankLines( )
removeComments( )
searchPath( )
verboseMessages( )
warningMessages( )
define( )
main( )
preprocess( )
undefine( )

Sales
Legal
Feedback

 

Used to define a new identifier or macro or overwrite the value of an existing one.

Syntax

    pp.define( Sting )

Parameters

    pp an instance of the pp class.
    String contains the definition in the form:
    identifier { text }
    macro( { identifier { , identifier }... } ) { text }

Returns

    Nothing

Notes

    Used to define or redefine an identifier or macro.

    If the identifier or macro already exists, then the old value is overwritten with the new value.

    Requires that stec.pp.pp be imported.

Example

    pp.define("__OS__", "WIN32")
    pp.define("MAX(a,b) (a>=b)?a:b")
    

Syntax

    pp.define( Sting , type )

Parameters

    pp an instance of the pp class.
    String contains the name of the identifier.
    type a [ String | int | double | boolean ] value to associate with the specified identifier.

Returns

    Nothing

Notes

    Used to define or redefine an identifier.

    If the identifier already exists, then the old value is overwritten with the new value.

    Requires that stec.pp.pp be imported.

Example

    pp.define("__OS__", "WIN32")
    
 top of page
 Built with iScript Copyright © 1997-1999 Servertec. All rights reserved.
Last Modified: Tue Jan 26 22:17:56 EST 1999