QR EXECUTE COMMAND
QR EXECUTE COMMAND* ( area ; command )
| Parameter | Type | Description | |
|---|---|---|---|
| area | Integer | → | Reference of the area | 
| command | Integer | → | Menu command to be executed | 
Description
he QR EXECUTE COMMAND command executes the toolbar button command whose reference was passed in command. The most common use for this command is to execute a command selected by the user and intercepted in your code via the QR ON COMMAND command.
In command, pass a value or one of the following constants of the QR Commands constant theme (only listed events are supported):
| Constant | Value | Comment | 
|---|---|---|
| qr cmd generate | 2008 | Use of command QR RUN recommended | 
| qr cmd open | 2001 | |
| qr cmd page setup | 2006 | |
| qr cmd print preview | 2007 | |
| qr cmd save | 2002 | |
| qr cmd save as | 2003 | 
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 Get command status
QR ON COMMAND
Properties
| Command number | 791 | 
| Thread safe | ✗ | 
| Modifies variables | error |