OnFkey
The OnFkey event occurs whenever a function key is pressed. In older versions of RFgen (5.1 and older), the Function keys F1-F4 triggered pre-defined system events. To bypass system processing of these events set Fkey = '0' (zero) and RFgen will ignore the event. In RFgen 5.2 and higher, the OnFKey event fires and then the key is evaluated for the configured functionality. If you perform some action via script to override the configured logic, RFgen needs a mechanism to stop processing at the event execution. The Handled variable was introduced to stop the processing. Set it to Handeld = True if you would like processing to stop.
Group: Events
Applies to: Application, Prompts
Syntax: OnFkey(KeyId, Handled)
KeyId (Long) is the value of the key pressed. Possible values range from (1-10).
Handled (Boolean) is used to stop processing.
Example:
Public Sub Form_OnFkey(KeyId As Long)
On Error Resume Next
If KeyId = 5 Then
' In this example we are using the F5
' key to execute logic.
' your logic
End If
End Sub