Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Multiple pick lists
Message
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00388749
Message ID:
00389296
Views:
19
>>>I know to use a list box, but I was thinking more on the format of cycling through the picklists.
>>>
>>>Kev

Sorry I overlooked:

You can pass an array equivalent to the selected item(s) of the listbox to another modal form that contains listbox and so on.
* Assuming that the array passed have this values:
cArray[1] = 'Administration'
cArray[2] = 'Services'
cArray[3] = 'Transaction'
cArray[4] = 'Utility'
cArray[5] = 'BackOffice'

* ListBox contains the following item selection:
Thisform.List1.List[1] = "Administration"
Thisform.List1.List[2] = "Services"
Thisform.List1.List[3] = "Transaction"
Thisform.List1.List[4] = "Utility"
Thisform.List1.List[5] = "BackOffice"
Thisform.List1.List[6] = "Others"
Thisform.List1.LIst[7] = "Extra Item"

* To pre-select the items:
FOR k = 1 TO Thisform.List1.Listcount
    cListVal = Allt(Thisform.List1.ListItem(k))
    nCheck = ASCAN(cArray,cListVal)
    IF nCheck > 0
   	Thisform.List1.Selected(k) = .T.
    ENDIF
ENDFOR
Above code would pre-select items 1 to 5. It's in your hands on how you do the workaround
JESS S. BANAGA
Project Leader - SDD division
...shifting from VFP to C#.Net

CHARISMA simply means: "Be more concerned about making others feel good about themselves than you are in making them feel good about you."
Previous
Reply
Map
View

Click here to load this message in the networking platform