ClearRight (clear each "right" field)

Top  Previous  Next

 

ClearRight

The ClearRight method clears the contents of each "right" 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 ClearRight 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:     AddPairAddPair__add_a_field_pair_FieldPairsClass_, AddItemAddItem___add_a_field_pair_from_one_source_field_, List