The following event handler displays the city for a zip code that is typed into the control:

PROCEDURE zipCode_onChange

   form.city.text = lookup( ZIPCODE->CITY, this.value, ZIPCODE->ZIP_CODE )