Skip to main content
Version: Next

QR EXECUTE COMMAND

QR EXECUTE COMMAND ( area ; command )

ParameterTypeDescription
areaIntegerReference of the area
commandIntegerMenu command to be executed

This command is not thread-safe, it cannot be used in preemptive code.

Description

The 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):

ConstantValueComment
qr cmd generate2008Use of command QR RUN recommended
qr cmd open2001
qr cmd page setup2006
qr cmd print preview2007
qr cmd save2002
qr cmd save as2003

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