dOPC Client Toolkit Help file
TdOPCGUI.DeleteItem Method
C++
public: virtual __fastcall boolean DeleteItem(
    TdOPCControl Comp, 
    AnsiString PropName
);
C#
public boolean DeleteItem(
    TdOPCControl Comp, 
    String PropName
);
Visual Basic
Public Function DeleteItem(
    Comp As TdOPCControl, 
    PropName As String
) As boolean

deletes an existing Item 

DeleteItems deletes an assignment between a control and an item.

procedure TForm1.cShowValueClick(Sender: TObject);
begin
  if cShowValue.Checked then //show value
  begin
    Edit1.Color := clWindow;
    OPCGUI.AddItem('test',ShowOPCItem,Edit1,'text'); //show value in edit
  end
  else //don't show value
  begin
    Edit1.Color := clSilver;
    OPCGUI.DeleteItem(Edit1,'text'); //delete item
    Edit1.Text := ''; //show nothing
  end;
end;
What do you think about this topic? Send feedback!
Copyright © 2001-2014 Kassl GmbH (http://www.kassl.de). All rights reserved.