Applies To:
  • CitectSCADA 2.x 3.x 4.x

Summary:
When you use one of the above list functions and then you use FormAddList to populate the list, you may find that a bank record appears in the list, this will be more evident if you use mode 1 for FormListBox() 

Solution:
Set the buffer to some useful setting before you call FormListBox(), the following code fragment shows how you might achieve this.

DevSeek(hDev2, 1);
hFormb = FormNew("Trend Backup", 38, 11, 0);
sSelect2 = DevGetField(hdev2, "NAME"); // set the buffer in advance
DevNext(hDev2); // advance to the next record
hField2 = FormListBox(20, 1, 16, 8, sSelect2, 1);
WHILE NOT DevEof(hDev2) DO
   FormAddList(DevGetField(hdev2, "NAME"));
   DevNext(hDev2);
END
FormRead(0);

 

Keywords:
 

Attachments