C5_ANNOUNCE

ANNOUNCE
 Declare a module identifier
------------------------------------------------------------------------------
 Syntax

     ANNOUNCE <idModule>

 Arguments

     <idModule> is a module identifier name.

 Description

     ANNOUNCE is a declaration statement that defines a module identifier.  A
     linker may use this identifier later to satisfy pending module REQUESTs.
     ANNOUNCE and REQUEST provide a mechanism for managing application
     modules (.prg files).

     Specify ANNOUNCE statements prior to any executable statements in a
     program file.  A source (.prg) file can only have one module identifier;
     all subsequent ANNOUNCE declarations produce a compiler warning and will
     be ignored.  Module identifiers must be unique and should not duplicate
     the name of any procedures or user-defined functions in a source (.prg)
     file.

 Examples

     .  This example illustrates the ANNOUNCE declaration:

        ANNOUNCE CustomInit

        INIT PROCEDURE MyInit
           ? "Hypothetical Industries, Inc."
           RETURN

        The above program module, CustomInit, should be compiled with the /N
        option.  Subsequently, the program is addressed in the source code of
        another program module through use of the REQUEST statement,

        REQUEST CustomInit

        which causes the module CustomInit to be linked into the resultant
        executable (.EXE) file.

See Also: REQUEST

 

5 responses to “C5_ANNOUNCE

  1. Pingback: C5 Flow Control | Viva Clipper !

  2. Pingback: C5 Statements | Viva Clipper !

  3. Pingback: C5_REQUEST | Viva Clipper !

  4. Pingback: C5_INIT PROCEDURE | Viva Clipper !

  5. Pingback: C5_EXIT PROCEDURE | Viva Clipper !

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.