Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Preselecing t Items in a ListBox
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00393757
Message ID:
00393759
Vues:
15
>How can I preselect Items in a ListBox on a form to display as Selected when the Form Loads
>
>The Following does NOT work
>
>nCount = THISFORM.LstID.ListCount
>FOR n = 1 TO nCount
> THISFORM.LstID.Selected(n) = .T.
>NEXT
>
>Note : THISFORM.LstID.RowSourceType = 2 Alias
>and THISFORM.LstID.MultiSelect = .T.

Actually it resets when doing it in the Init event of the form but it works when all controls has been activated. Try to have a command button and in the click event, put your code, it works.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform