4D v16.3

QR Get command status

Home

 
4D v16.3
QR Get command status

QR Get command status 


 

QR Get command status ( area ; command {; value} ) -> Function result 
Parameter Type   Description
area  Longint in Reference of the area
command  Longint in Command number
value  Longint, Text in Value for the selected sub-item
Function result  Longint in Command status

The QR Get command status command returns 0 if the command is disabled or 1 if it is enabled.

value returns the value of the selected sub-item, if any. For example, if the command that was selected is the Font menu (1000) and the font selected was “Arial”, value would return “Arial”, or if the command that was selected is a color menu (1002, 1003 or 1004), value would return the color number.

You can use the command in two types of contexts:

  • As a simple statement to determine whether a command is enabled or disabled.
  • In the method installed by QR ON COMMAND, to allow you to know which sub-item was selected. In that method, $1 is the reference of the area and $2 is the number of the command.

In command, you can pass a value or one of the constants of the QR Commands constant theme.

If you pass an invalid area number, the error -9850 will be generated.
If you pass an invalid command number, the error -9852 will be generated.



See also 

QR EXECUTE COMMAND
QR ON COMMAND

 
PROPERTIES 

Product: 4D
Theme: Quick Report
Number: 792

This command modifies the Error system variable

 
HISTORY 

Created: 4D 2003

 
ARTICLE USAGE

4D Language Reference ( 4D v16)
4D Language Reference ( 4D v16.1)
4D Language Reference ( 4D v16.2)
4D Language Reference ( 4D v16.3)