OnSend Property

Sets or gets the name of the macro or script to run when the Send event occurs.

object.OnSend as String

Note

This property is normally set for the App object in the Startup macro.

For the App object, this event occurs after the form's Send event has been triggered. It is primarily used to validate user input before sending the screen. You can prevent the screen from being sent by executing the CancelEvent action or method in the OnSend logic for the Form.

BE AWARE THAT:

Added forms do not have support for the OnSend property. Therefore, if you are assigning logic to the OnSend property of the App object at startup be aware that this logic will not run when the user exits an added form. Use the OnClose property to achieve similar functionality for added forms.

See Also

OnReceive property | OnRefresh property | CancelEvent method

Applies To

App object | Form object


© 2004-2021 looksoftware. All rights reserved.