General information
Category:
Coding, syntax & commands
I don't understand why you'd get an error under these circumstances, but pcount() is the "preferred" way of checking parameter counts. The following is from the VFP help:
"Note The value returned by PARAMETERS( ) is reset every time a program, procedure, or user-defined function is called or when ON KEY LABEL is executed. Unlike PARAMETERS( ), the PCOUNT( ) function does not get reset, so PCOUNT( ) may be preferable in most programming situations"
HTH,
DaveR
>I pass two parameters to proc1. One has a value and the other is empty. In proc1 there is a "IF PARAMETERS() < 2" which produces an error message. On my machine it counts two parameters and no error message is produced. On another machine using the same executable, the error message is produced.
>
>Is there some oddity about PARAMETERS()?
>
>Thanks - Brenda
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only