Skip to main content
Version: 20 R9

QR ON COMMAND

QR ON COMMAND ( area ; methodName )

ParameterTypeDescription
areaIntegerReference of the area
methodNameTextName of the replacement method

Description

The QR ON COMMAND command executes the 4D method passed in methodName when a Quick Report command is invoked by the user, by the selection of a menu command or by a click on a button.

If area equals zero, methodName will apply to each Quick Report area until the database is closed or until the following call to the command is made: QR ON COMMAND(0;"").

methodName receives two parameters:

  • 1ドル is the reference of the area (Longint).
  • 2ドル is the command number of the command that was selected (Longint). You can compare this value with the following constants of the QR Commands theme:
ConstantTypeValueComment
qr cmd generateInteger2008Use of command QR RUN recommended
qr cmd page setupInteger2006
qr cmd print previewInteger2007

Note: When planning on compiling the database, it is necessary to declare both 1ドル and 2ドル as Longints, even if you do not use them.

If you want the initial command to be executed, you need to include the following in the called method: QR EXECUTE COMMAND(1ドル;2ドル).

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

See also

QR Commands
QR EXECUTE COMMAND
QR Get command status

Properties

Command number790
Thread safe
Modifies variableserror

AltStyle によって変換されたページ (->オリジナル) /