Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Get Value from Dynamic ComboDropDown
Message
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Get Value from Dynamic ComboDropDown
Miscellaneous
Thread ID:
00805814
Message ID:
00805814
Views:
62
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
Next
Reply
Map
View

Click here to load this message in the networking platform