PCount()

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

      PROCEDURE Test( xExp )
         IF PCount() == 0
            ? "This function needs a parameter"
         ELS
            ? xExp
         ENDIF
         RETURN

Compliance

Clipper

Files

Library is vm

Seealso

HB_PVALUE()

3 responses to “PCount()

  1. Pingback: Harbour All Functions – P | Viva Clipper !

  2. Pingback: Harbour hvm Functions | Viva Clipper !

  3. Pingback: Harbour RG Summary | 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.