Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Multiple pick lists
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
00388749
Message ID:
00389290
Vues:
12
>>I know to use a list box, but I was thinking more on the format of cycling through the picklists.
>>
>>Kev
>
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.[1] = "Administration"
Thisform.List1.[2] = "Services"
Thisform.List1.[3] = "Transaction"
Thisform.List1.[4] = "Utility"
Thisform.List1.[5] = "BackOffice"
Thisform.List1.[6] = "Others"
Thisform.List1.[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."
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform