Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Get Value from Dynamic ComboDropDown
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Get Value from Dynamic ComboDropDown
Divers
Thread ID:
00805814
Message ID:
00805814
Vues:
61
I have a combo class that loads dynamic data based on user id during its init method. When the user selects from that list (valid) I need to get the id that was selected.

Here is the init code that loads it:
TEXT TO lcCmd noShow
	exec ct_Get_UserReportGroupsByUserID ?gnUserID
ENDTEXT
IF SQLEXEC(gnConnHandle,lcCmd,"CurReportGroupsCBO")<1
	=sqlerror()
ELSE
	SELECT CurReportGroupsCBO
	lnRow=1
	scan
		this.AddListItem(ALLTRIM(ReportGroupDesc),lnRow,1)
		this.AddListItem(ALLTRIM(STR(userReportID)),lnRow,2)
		lnRow=lnRow+1
	ENDSCAN
ENDIF
Not sure how to pull out the listitem for the userReportID

Kirk
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform