xHarbour Reference Documentation > Statement Reference xHarbour Developers Network  

REQUEST

Declares the symbolic name of an external function or procedure for the linker.

Syntax

REQUEST <name1> [,<nameN>]

Arguments

REQUEST <name>
This is the symbolic name of a function or procedure to declare for the linker. When multiple names are declared, they must be separated with commas.

Description

The REQUEST statement declares a symbolic name of a function or procedure for the linker. This is usually required when there is no direct call of a function or procedure in PRG code, for example when a function is only called within a macro-expression using the macro-operator. By requesting the symbolic name of a function, the linker is forced to link the corresponding function to the executable file.

Info

See also:#include, EXTERNAL
Category: Declaration

Example

// This example demonstrates a possible header file with some REQUEST
// statements. The file can the be #included in PRG files that may
// need the requested functions.

   ** File: Requests.ch
   REQUEST _ADS
   REQUEST HBObject
   // EOF

Copyright © 2006-2007 xHarbour.com Inc. All rights reserved.
http://www.xHarbour.com
Created by docmaker.exe