Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.

For information on migrating to InterSystems IRIS, see How to Migrate to InterSystems IRIS, available on the WRC Distributions page (login required).


The ClearContact method clears the information currently displayed on the Edit Contact Information GUI panel. It also closes curContact. Clicking Clear invokes ClearContact. The method does the following:

  1. Clears the Edit Contact Information text boxes.

  2. If curContact is not null it closes curContact and sets the reference to null.

Here is the method. Add the body of the method to the ClearContact stub in PhoneFormObj.cs.

private void ClearContact()
  txtConId.Text = "";
  txtConName.Text = "";
  if (curContact != null)
    curContact = null;