add(value: MemberType);
The add method of the MemberKeyDictionary class adds the object specified in the value parameter to the receiver.
If there is already an entry with the same key and the collection does not allow duplicate entries, an exception is raised.
The following example shows the use of the add method to populate a member key dictionary referenced by customerDict with 80 customer instances.
load() updating; vars count : Integer; cust : Customer; begin beginTransaction; count := 1; while count < 81 do create cust; cust.key := count; cust.name := "Customer " & count.String; cust.address := "Address " & count.String; cust.phoneNo := "364589" & count.String; self.customerDict.add(cust); count := count + 1; endwhile; commitTransaction; end;