The Explorer_AddItem_To_ListView procedure adds one item to the list view field in the SmartList window. It is used in the procedure that is called as individual records are added to the SmartList.
Explorer_AddItem_To_ListView, Label, Record_Count, Object_Name, Index
• Label – A string that must contain the primary key values needed to retrieve the record that supplies the data for the item being added. Other applications will use the key values stored in the label to identify the record, such as when processing Go To items.
• Record_Count – A long integer specifying the total number of items being added to the list view. This number will be displayed in the status area at the bottom of the SmartList window.
• Object_Name – A string that contains the name of the type of objects being displayed in the SmartList. This name will be displayed in the status area at the bottom of the SmartList window.
• Index – A returned long integer that contains the index of the new list view item. You will use this index with the Explorer_Add_SubItem_To_ListView procedure to add subitems to the new item.
This procedure should be called with the foreground parameter, ensuring that it runs in the foreground.