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
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.
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
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.