Skip to main content

This is documentation for Caché & Ensemble. See the InterSystems IRIS version of this content.Opens in a new tab

For information on migrating to InterSystems IRISOpens in a new tab, see Why Migrate to InterSystems IRIS?

ClearContact

ClearContact メソッドを使用すると、現在 [連絡先情報の編集] GUI パネルに表示されている情報をクリアできます。また、curContact を閉じます。[クリア] をクリックすると、ClearContact が呼び出されます。このメソッドは、以下を実行します。

  1. [連絡先情報の編集] テキスト・ボックスをクリアします。

  2. curContactNULL でない場合は、curContact を閉じ、参照を NULL に設定します。

完成したメソッドは以下のとおりです。このメソッドの本文を、PhoneFormObj.csClearContact スタブに追加します。


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

FeedbackOpens in a new tab