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