Urgent: Problem using ActiveX in Forms 5.0 - List Control
From: Tomas Cirip <tomas_at_cmic.ca>
Date: Thu, 29 Oct 1998 14:45:14 -0500
Message-ID: <71aghd$fcn$1_at_demon.uunet.ca>
Hi All,
Begin
ListCtrl := Get_Interface_Pointer('MYLIST1'); ListItems := COMCTL_ILISTVIEW10.ListItems(ListCtrl); ListItem := COMCTL_ILISTITEMS10.Ole_Add(ListItems );
Date: Thu, 29 Oct 1998 14:45:14 -0500
Message-ID: <71aghd$fcn$1_at_demon.uunet.ca>
Hi All,
I am trying to set data for 2nd, 3rd, ... cells in List Control. But I am getting OLE error. Can anybody tell me what can be wrong with following code ?! Any help appreciated. Thanks
What I want is 1st cell with 'Peter', 2nd column in the same row 'Paul'
Declare ListCtrl OleObj;
ListItems OleObj; ListItem OleObj;
Begin
ListCtrl := Get_Interface_Pointer('MYLIST1'); ListItems := COMCTL_ILISTVIEW10.ListItems(ListCtrl); ListItem := COMCTL_ILISTITEMS10.Ole_Add(ListItems );
COMCTL_ILISTITEM10.Text(ListItem, 'Peter'); COMCTL_ILISTITEM10.Key(ListItem, 'P'); COMCTL_ILISTITEM10.SubItems(ListItem, 1, 'Paul');End; Received on Thu Oct 29 1998 - 20:45:14 CET