I would like to use an enumerator to populate a Combobox with Key/Value pairs. Its important that I hide the key from the user and display the value only. On selecting I would like to capture the key associated with the selected value.
The code looks something similar to this.
while enum.MoveNext do
currentObj := enum.Current.AsObject;
The key currentObj.S[‘key’] should be capture on user select of the value
currentObj.S[‘value’] which is visible to the user on the cboUserList dropdownlist.