Vcl.DBCtrls.TDBEdit.Field

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

property Field: TField read GetField;

C++

__property Data::Db::TField* Field = {read=GetField};

Properties

Type Visibility Source Unit Parent
property public
Vcl.DBCtrls.pas
Vcl.DBCtrls.hpp
Vcl.DBCtrls TDBEdit

Description

Specifies the TField object for the database field the edit box represents.

Read Field to get direct access to the contents and properties of the database field without going through the edit window. Use Field to change the contents of the database field programmatically:



DBEdit1.Field.AsString := 'San Francisco Baking';



DBEdit1->Field->AsString = "San Francisco Baking";



Use the Text property instead if you want to change the contents of the edit window without immediately posting the changes to the dataset. Changing the Text property allows the user to cancel the changes.

See Also