#define GetObject GetObject
__object *pdl = NULL;
__object *pic = NULL;
__object *obj = NULL;
pdl = __object_create("PDLRuntime");
pic = pdl->GetPicture(lpszPictureName);
obj = pic->GetObject("Control1");
obj->Nodes->Clear();
obj->Nodes->Add("Um");
obj->Nodes->Add("DO","Dois");
printf("Nodes->Count: %d\r\n", obj->Nodes->Count());
obj->Nodes->Add(NULL, 4, 2,"Tres");
__object_delete(obj);
__object_delete(pic);
__object_delete(pdl);
Заполнение TreeView Control через C-script WinCC 7.0
Код:
Код:
Nodes: Element not found
Nodes: Element not found
Nodes->Count: 0
Nodes: Index out of bounds
Nodes: Element not found
Nodes->Count: 0
Nodes: Index out of bounds