ComponentOne List 8.0 for ActiveX
ErrorText Property (TDBCombo)

 

TDBCombo Reference> TDBCombo Control Properties> ErrorText Property (TDBCombo)

ErrorText Property (TDBCombo)

This property returns the error message string from the underlying data source.

Syntax

object.ErrorText

Remarks

Read-only at run time. Not available at design time.

Property applies to TDBList and TDBCombo controls.

When a database error occurs as a result of user interaction with the control, such as when the user enters text into a numeric field and then attempts to update the current record by moving to another row, the control's Error event will fire. However, the error code passed to the event handler in the DataError parameter may not identify the specific error that occurred. For these reasons, the ErrorText property is provided so that your application can parse the actual error message to determine the nature of the error.

Note: The ErrorText property is only valid within a TDBList and TDBCombo control's Error event handler. A trappable error will occur if you attempt to access it in any other context.

See Also

TDBList and TDBCombo Controls

 

 


Copyright (c) GrapeCity, inc. All rights reserved.

Product Support Forum  |  Documentation Feedback