4D v13.4

QR ON COMMAND

Home

 
4D v13.4
QR ON COMMAND

QR ON COMMAND 


 

QR ON COMMAND ( area ; methodName ) 
Parameter Type   Description
area  Longint in Reference of the area
methodName  String in Name of the replacement method

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.

Note: This command only works in the context of a quick report area included in a form.

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 constants of the QR Commands theme.

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.

 
PROPERTIES 

Product: 4D
Theme: Quick Report
Number: 790

This command modifies the Error system variable

 
INDEX

Alphabetical list of commands

 
HISTORY 

Created: 4D 2003

 
SEE ALSO 

QR EXECUTE COMMAND
QR Get command status