Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Trying to populate a listbox
Message
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Trying to populate a listbox
Divers
Thread ID:
01086295
Message ID:
01086295
Vues:
67
In my form I have this example for testing: but it never gets populated, can you tell me why?
DIMENSION gaMyArray(5)
FOR gnCount = 1 to 5  
   STORE gnCount TO gaMyArray(gnCount)
  NEXT 
thisForm.List1.RowSourceType = 5
thisForm.List1.RowSource = "gaMyArray"
thisform.list1.additem(gaMyArray(1,1)) 
thisform.list1.additem(gaMyArray(1,2)) 
thisform.list1.additem(gaMyArray(2,1)) 
thisform.Refresh
thisform.list1.Requery()
?thisForm.List1.Value
"Build a man a fire, and he's warm for a day.
Set a man on fire, and he's warm for the rest of his life."
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform