Navigation: ABC Library Reference > FieldPairsClass > FieldPairsClass Methods >====== ClearLeft (clear each “left” field) ====== | |
ClearLeft
The ClearLeft method clears the contents of each “left” field in the List property.
Implementation:
For AddPair pairs, the “left” field is the field whose label is the first (left) parameter of the AddPair method; the “right” field is the field whose label is the second (right) parameter of the AddPair method. For AddItem pairs, the “left” field is the field whose label is the only parameter of the AddItem method. The “right” field is the FieldPairs supplied copy of the “left” field.
The ClearLeft method CLEARs the field. See the Language Reference for more information on CLEAR.
Example:
Fields &= NEW FieldPairsClass !instantiate FieldPairs object
Fields.Init !initialize FieldPairs object
Fields.AddPair(CUST:CustNo,CustQ.CustNo)!establish CustNo pair
Fields.AddPair(CUST:Name,CustQ.Name) !establish Name pair
Fields.AddPair(CUST:Phone,CustQ.Phone) !establish Phone pair
Fields.AddPair(CUST:ZIP,CustQ.ZIP) !establish ZIP pair
!some code
IF LocalRequest = InsertRecord
Fields.ClearRight !clear the CustQ fields to blank or zero
END
See Also: AddPairAddPairadd_a_field_pair_FieldPairsClass_, AddItemAddItem_add_a_field_pair_from_one_source_field_, List