ComponentOne List 8.0 for ActiveX
Text Property (TDBCombo)

 

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

Text Property (TDBCombo)

When applied to a Column object, this property returns or sets the formatted data value in a column for the current row.

Syntax

object.Text= string

Remarks

Read/Write at run time. Not available at design time.

Property applies to TDBList and TDBCombo controls, Column object.

This is the default property of the TDBList and TDBCombo controls.

The value returned by the Text property is derived from the underlying data value by applying the formatting as specified by the NumberFormat property of the Column object.

When the Text property is set for a formatted column, the underlying data value cannot be derived, and the Text and Value properties will subsequently return the same result.

Use the Value property to access the underlying data value in a column for the current row.

For TDBList controls this property returns the ListField value for the selected row.  When the Text property is set in code, the control tries to find a matching ListField value and repositions the selected row if a match is found.  If no match is found, the selection is cancelled and the Text property returns an empty string.

For TDBCombo controls, this property returns or sets the contents of the text box portion of the control.

See Also

TDBList and TDBCombo Controls

Column Object, Columns Collection

 

 


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

Product Support Forum  |  Documentation Feedback