Visual RPG Language Reference  

Event Subroutine Parameters

Some events have parameters that tell you more specific information about the event.  MouseDown, for example, passes the X and Y coordinates, and a code that tells which mouse button was pressed.

You do not need to code all the parameters if you don't need them all.  Any parameters that don't have a corresponding DCLSRPARM statement will be ignored.

Most event subroutine parameters are passed by value.  Some however, are passed by reference and allow you to change the value, thus affecting the behavior of the control.  For example, on some controls, the KeyPress event passes the pressed character by reference, allowing you to change the value before the character is displayed in the control.

The object determines whether a parameter is passed by value or by reference.  If your DCLSPARM's BY parameter conflicts with the object, you will get a compiler error.  Consult the documentation to see if the parameter is passed by value or by reference.  If you are still unsure, use the IDE editors to generate the parameter declarations for you.

Event Subroutine Parameters are Implemented for the Following Events:

KeyDown - System.Windows.Forms.KeyEventArgs

KeyUp - System.Windows.Forms.KeyEventArgs

KeyPress - System.Windows.Forms.KeyPressEventArgs

RecordDelete - ASNA.VisualRPG.Windows.Controls.RecordDeleteArgs

RecordNew - ASNA.VisualRPG.Windows.Controls.RecordNewArgs

RecordSwitch - ASNA.VisualRPG.Windows.Controls.GridArgs

See Also

BEGSR
DCLSRPARM
Form Variables
KeyDown Event
KeyUp Event
KeyPress
RecordDelete Event
RecordNew Event
RecordSwitch Event | System.Windows.Forms.KeyEventArgs | System.Windows.Forms.KeyPressEventArgs
ASNA.VisualRPG.Windows.Controls.RecordDeleteArgs
ASNA.VisualRPG.Windows.Controls.RecordNewArgs
ASNA.VisualRPG.Windows.Controls.GridArgs