CT_GETFLDVAR

 GETFLDVAR()
 Determines the name of a GET field
------------------------------------------------------------------------------
 Syntax

     GETFLDVAR([<nField>]) --> cField

 Argument

     <nField>  Designates for which number of the GET field to determine
     the name of the accompanying variable.  The default is the currently
     active field.

 Returns

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

 Description

     GET FIELD VARIABLE
     This function determines the name of an input field.  If the <nField>
     parameter is not specified, the function returns the name for the
     currently active field.  With an invalid field number or if there is on
     active field, a value of -1 is returned

 Examples

     .  Display the name of the variable associated with the second
        posted GET:

        @ 10, 10 GET VAR1
        @ 10, 20 GET VAR2
        @ 10, 30 GET VAR3

        ? GETFLDVAR(2)               //  "VAR2"

     .  Display the name for the active field:

        READ                         // Assuming field 1 is active
        ? GETFLDVAR()                // "VAR1"

     .  Within a UDF or KEYTRAP procedure:

        ? GETFLDVAR()                // "VAR1"

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

 

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out /  Change )

Google photo

You are commenting using your Google account. Log Out /  Change )

Twitter picture

You are commenting using your Twitter account. Log Out /  Change )

Facebook photo

You are commenting using your Facebook account. Log Out /  Change )

Connecting to %s

This site uses Akismet to reduce spam. Learn how your comment data is processed.