Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiselect Option in ListBox
Message
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 6 SP5
Miscellaneous
Thread ID:
01120276
Message ID:
01120283
Views:
16
PARAM xTable_Name,xField_Name,xSelected_Value && xTableName,xField_Name helps to create cursor
DODEFAULT()
MAIN_TOOLBAR.ENABLED = .F.
CreateSqlCursor(xTable_Name,xField_Name,"Select_List") 
ThisForm.Xlist1.ROWSOURCE = "Select_List." + xField_Name
xSelected_Value = ALLTRIM(xSelected_Value)
IF !EMPTY(xSelected_Value)
	FOR lnFor = 1 TO ThisForm.Xlist1.ListCount
       thisform.Xlist1.LIST(lnFor).SELECTED = (thisform.xList1.List(lnFor) $ xSelected_Value) && ERROR AT THIS POINT
   NEXT
ENDIF
Riyaz Patanwala
I. T. Programmer
Al Jaber Energy Services L.L.C.
P.O.Box 47467
Abu Dhabi, U.A.E.
Tel - +971 2-502-1644
Fax - +971 2-554-6106
Cell - +971 50 358-0229
Email - riyaz.patanwala@ajes.ae
Website - www.ajes.ae
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform