Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How do I retrieve listbox itemid
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
How do I retrieve listbox itemid
Divers
Thread ID:
00879025
Message ID:
00879025
Vues:
56
I am populating a listbox with a string and my own itemid number. After populating the listbox, the user moves the items around. How do I retrieve the itemid that I input when I read the listbox back again. Here is my code:
***** populate listbox with my own tc_id
SELECT tc_task,tc_id,tc_order FROM lv_tskcnt_tbl_itemmove INTO CURSOR ;
	crsim WHERE tc_c_id = thisform.a ORDER BY tc_order
SELECT crsim			
SCAN 
	.l1p6.AddlistItem(crsim.tc_task,crsim.tc_id)
ENDSCAN 
.l1p6.MoverBars= .T.
now I want to know how can I get the tc_id (which I guess is my itemid ) out of the listbox? Here is the code I have but it is not working.
indx = 0
FOR indx = 1 TO .l1p6.ListCount
	citem=.l1p6.ListItem(.l1p6.IndexToItemID(indx), 2)
ENDFOR
I want to get at the tc_id from the listbox

thanks
Nick Patel
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform