BeforeInputFieldDownload event

Occurs immediately before any input field values are written. This occurs only once for a download of any input fields.
Syntax
Display
_
BeforeInputFieldDownload
(
ByRef
Cancel
As Boolean
)
where
Display
– is the name of a Display object variable that was dimensioned using the WithEvents keyword or the reserved name Display.
Cancel
– is an argument of the type Boolean. Cancel is False when the event occurs. If the event procedure sets this argument to True, no values are written after the procedure returns.
Remarks
  • When the event occurs, the values of the input fields are saved while the event handler runs the procedure. This allows the user to interact with the display while the Graphics subsystem is waiting for the event handler to return. If Cancel remains False when the event handler returns, the values will be downloaded.
  • For NumericInput or StringInput objects, when you select the option,
    Discard input and resume updating when focus is lost
    , in their General tab, make sure your code does not cause the object to lose focus while in the BeforeInputFieldDownload event handler. Some of the actions that can cause this are: displaying a message box or user form, programmatically moving the input focus to another object, or putting a breakpoint in the code which causes the VBA IDE to get focus.
Provide Feedback
Have questions or feedback about this documentation? Please submit your feedback here.
Normal