Defines the field's text.
Get
| C# | string String = object.Text; |
| VB.NET | String = object.Text As String |
| C++ | _bstr_t String = object->Text; _bstr_t String = object->GetText(); |
| C | HRESULT object->get_Text(BSTR* String); |
Put
| C# | string object.Text = String; |
| VB.NET | object.Text = String As String |
| C++ | _bstr_t object->Text = String; void object->PutText(_bstr_t String); |
| C | HRESULT object->put_Text(BSTR String); |
object
String
Defines the field's text.
The Text property defines the text of a date field control. Reading it returns the text the field shows, as formatted using the Format property; the text of an empty field is an empty string. p Setting it parses the text as text typed in free-form editing: the TextParsing event lets the application parse it first, then the control parses it in the format of the field, leniently in the formats of the culture, and the texts "=Today", "=Yesterday", "=Tomorrow" and "=Now". The value is not validated (ValueValidating). A text that cannot be parsed causes an error.
See Also SftDate Object | Object Hierarchy | Editing