Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- CA-Clipper 5.2 . Technical Reference - <b>_parni()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 _parni()
 Retrieve a numeric parameter as an int type
------------------------------------------------------------------------------
 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 int type.

 Description

     _parni() retrieves a numeric value passed as a parameter from CA-Clipper
     and converts it to an int 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()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson