Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ListView PowerCobol Explained? 1

Status
Not open for further replies.

dexy86

Programmer
Feb 10, 2011
9
Can anyone explaine PowerCobol's ListView function?
I really really dont understand it!
One more thing.
I need to ged data from index file ok i have done that
and now i need to make somekind of loop or what (In ListView) so i can list all of my data in ListView.
I hope that i was clear :D
here is the code:
INVOKE ListanjeListView "Add" USING 1 1 RETURNING WK-IDX
********** what do ones do ? 1 1
IF WK-IDX > 0 THEN
MOVE "ListItems"(WK-IDX) OF ListanjeListView TO POW-PCMLIST
********** what does "ListItems" (WK-IDX) reprezent ?
MOVE "o" TO "Text"(1) OF POW-PCMLIST
MOVE DATUM-PO-FILE TO "Text"(2) OF POW-PCMLIST
MOVE VREME-PO-FILE TO "Text"(3) OF POW-PCMLIST
MOVE NASLOV-PO-FILE TO "Text"(4) OF POW-PCMLIST
MOVE OPIS-PO-FILE TO "Text"(5) OF POW-PCMLIST
MOVE PRIORITET-PO-FILE TO "Text"(6) OF POW-PCMLIST
END-IF.
 
the ones represent the icon (only used if LVStyle is 0 large icon) and smallicon (only used if the LVStyle is 1 small icon) if you use 3 report both are not used. The listitem (index) is a pointer to the item added. Then just read thru the index file adding the items to the listview.
 
Thanks, any documentation on that stuff (objects, methods,...)?
or any good web sites i know few cobug and stuff but not much usefull info.
 
All the methods, properties and events should be available thru the help system. I usually go to the Controls and Objects Index for the control in question then narrow it down to the event or property I need.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top