CT_COUNTGETS

 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()

 

Tools — GET/READ Functions

Introduction GET/READ Functions
COUNTGETS()  Determines the number of posted GET fields
CURRENTGET() Determines the number of the currently active GET field
GETFLDCOL()  Determines the screen column of a GET field
GETFLDROW()  Determines the row of a GET field on the screen
GETFLDVAR()  Determines the name of a GET field
GETINPUT()   Keyboard input function similar to a GET field
GETSECRET()  Keyboard input function for hidden input similar to a GET field
RESTGETS()   Restores GET settings from an array
RESTSETKEY() Restores SET KEY..TO settings from an array
SAVEGETS()   Saves the GET settings of the active environment
SAVESETKEY() Saves SET KEY..TO settings in an array