Harbour Reference Guide

 

PCOUNT()

Retrieves the number of arguments passed to a function.

Syntax

PCOUNT() --> <nArgs>

Arguments

None

Returns

<nArgs> A number that indicates the number of arguments passed to a function or procedure.

Description

This function is useful to check if a function or procedure has received the required number of arguments.
Examples
      See Test
Tests
      function Test( xExp )
         if PCount() == 0
            ? "This function needs a parameter"
         else
            ? xExp
         endif
      return nil
Status

Ready

Compliance

PCOUNT() is fully CA-Clipper compliant.

Files

Library is vm

See Also

 




[Source Forge]

Other Docs Categories

Advantage Database RDD
Array
Binary conversion
Classes
Code Block
Console input
Conversion
Conversion Tools
DOS
Data input and output
Database
Database Tools
Date
Dos Tools
Environment
Error recovery
Events
File management
GT
Harbour Tools
Internal
Low Level
Math
Misc
Miscellaneous
Nation
Object manipulation
Operating System Specific
Parameter Checks
String Tools
Strings
TBrowse Method
TBrowse class
Terminal
Time
Utility
Variable Management

 

Last updated on 2001/07/30