RAD Studio VCL Reference
|
Provides access to the values for all child fields in the object field.
property FieldValues [Index: Integer]: Variant;
Use FieldValues to get or set the values of the object field's subfields. FieldValues accepts and returns a Variant, so it can handle and convert fields of any type. For example, the following statements are syntactically identical and write the value from an edit box into an ADT field with a child string field called STREET:
The next statements reads a string value from the first child field of the object field ADDRESS into an edit box:
Edit1.Text := DataSet1.FieldByName('ADDRESS').FieldValues[0];
Copyright(C) 2009 Embarcadero Technologies, Inc. All Rights Reserved.
|
What do you think about this topic? Send feedback!
|