[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
 COUNTGETS()
 Determines the number of posted GET fields
------------------------------------------------------------------------------
 Syntax

     COUNTGETS() --> nFields

 Returns

     COUNTGETS() returns the number of currently posted fields within a READ.

 Description

     COUNTGETS() determines how many GET fields are currently open in a VALID
     UDF or within a KEYTRAP procedure.  Posted means the GET fields have
     been recently defined before with @ ...GET ...

 Examples

     .  Display the number of GET fields that are currently posted
        from within a valid UDF:

           @ 10, 10 GET Field1
           @ 10, 20 GET Field2 VALID MYFUNC()
           @ 10, 30 GET Field3
        READ
        RETURN

     .  Returns COUNTGETS() within the UDF:

        FUNCTION MYFUNC
           ? COUNTGETS()          // Result: 3
           RETURN(.T.)


See Also: CURRENTGET()
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson