CT_GETFLDCOL

 GETFLDCOL()
 Determines the screen column of a GET field
------------------------------------------------------------------------------
 Syntax

     GETFLDCOL([<nField>]) --> nColumn

 Argument

     <nField>  Designates the number of the GET field for which the
     screen column is determined.  The default is the currently active field.

 Returns

     GETFLDCOL() returns the screen column for the first position of the
     currently active or the specified field.  If there is an invalid
     parameter, a value of -1 is returned.

 Description

     GET FIELD COLUMN
     This function determines the first column of an input field.  If the
     <nField> parameter is not specified, the function returns the column for
     the currently active field.  With an invalid field number or in a
     situation where there is no active field, a value of -1 is returned.

 Examples

     .  Display the screen column for the second posted GET:

        @ 10, 10 GET....
        @ 10, 20 GET....
        @ 10, 30 GET.....

        ? GETFLDCOL(2)            // Result: 20

     .  Display the column for the currently active GET field:

        READ                      // Assuming field 1 is active
        Within a UDF or KEYTRAP procedure:
        ? GETFLDCOL()             // Result: 10

See Also: GETFLDROW() CURRENTGET() COUNTGETS()

 

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