[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _parni()
 Retrieve a numeric parameter as an integer
------------------------------------------------------------------------------
 C Prototype

     #include "extend.api"
     int _parni(
                 int iParamNum
                 [, int iArrayIndex]
               )

 Arguments

     iParamNum is the one-based ordinal position of the parameter in the
     parameter list.

     iArrayIndex is an array index that specifies a particular element if
     the iParamNum parameter is an array.

 Returns

     _parni() returns the value of the specified parameter as an integer.

 Description

     _parni() retrieves a numeric value passed as a parameter from CA-Clipper
     and converts it to an integer (type).

 Examples

     .  From C:

        int num;
        num = _parni(1);

     .  From Assembly language:

        EXTRN __parni:FAR
              mov   ax, 1
              push  ax
              call  __parni            ; value returned in AX
              add   sp, 2              ; reset stack pointer

 Files  Library is CLIPPER.LIB, header file is Extend.api.


See Also: _parnd() _parnl() _retni() _storni()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson