Events
The EditSheet HTC supports the following events:
- OnChange
- OnError
- OnRequire
- OnValid
OnChange
The OnChange event fires whenever the value in an embedded field changes.
Return to top
OnError
The OnError event fires when the EditSheet HTC encounters a developer error condition. In addition, if the m_bDebug variable in the HTC is set to True, an alert box appears. This switch can be very helpful in debugging problems that occur if you get the error message "The control could not load."
The event object property window.event.error contains a string with details about the error.
Return to top
OnRequire
The OnRequire event fires whenever an embedded field changes from required to not required, or from not required to required.
The event object property window.event.required is set to True if any embedded field is marked as required and has no value. Otherwise it is set to False.
Return to top
OnValid
The OnValid event fires whenever an embedded field changes from valid to not valid, or from not valid to valid.
The event object property window.event.valid is set to False if the value in any embedded EditField HTC is not valid. Otherwise it is set to True.
Return to top
Copyright © 2005 Microsoft Corporation.
All rights reserved.