dOPC Client Toolkit
Close
dOPCGUI.TdOPCGUI.DeleteItem

deletes an existing Item 

DeleteItems deletes an assignment between a control and an item.

function DeleteItem(Comp: TdOPCControl; PropName: string): boolean; virtual;
virtual __fastcall boolean DeleteItem(TdOPCControl Comp, AnsiString PropName);
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;
Kassl GmbH Copyright © 2019. All rights reserved.