![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
|
If KeyAscii = x then Call RunSomeFunction(KeyAscii) |
|
In a field's OnKeyPress properties I can execute code that reveals the Ascii key that is pressed: On Key Press: [Event Procedure] Private Sub FieldName_KeyPress(KeyAscii As Integer) Dim x as Integer If KeyAscii = x then Call RunSomeFunction End Sub Is it possible to do the same if I call a function from the property window of the control: On Key Press: =RunSomeOtherFunction(???KeyAscii???) Function RunSomeOtherFunction(KeyAscii As Integer) Dim x as Integer If KeyAscii = x then call RunSomeExcitingCode End If End Function |
![]() |
| Thread Tools | |
| Display Modes | |
| |