skip to main content

Working With Controls : Creating a control : Inquiring a control

Inquiring a control
When the program needs to retrieve the value of a property, it must use the INQUIRE Statement
In order to make programs easier, the property VALUE is automatically updated, as long as it has been declared in Screen Section. Therefore, it is never needed to inquire the VALUE property, except during the event handling, because events may be asynchronous and the variable associated with the VALUE property may not be updated at the time the program needs it.
The syntax of the INQUIRE Statement is:
Format 1
INQUIRE {control-item } [ ( {index-1} ... ) ]
{CONTROL AT location}
  { { property-name          } [IN] { [MULTIPLE] property-value [LENGTH {IN} length-1 ] } } ...
    { PROPERTY property-type }      { [TABLE   ]                        {= }                              }
location is defined as follows:
{ screen-loc [CELL ]
LINE NUMBER line-num [CELL ]
{COLUMN } NUMBER col-num [CELL ]
Format 2
property-name can be one of the following:
The program can retrieve values of several properties with the same INQUIRE command:
produces the same effect as the following distinct statements:

Copyright (c) 2017 Veryant
Contact us
Please share your comments on this manual or on any
Veryant product documentation with the email button at the top left