Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Confused about combobox / listbox properties
Message
De
02/08/2002 00:21:25
Wally Noll
Double Aa Builders
Mesa, Arizona, États-Unis
 
 
À
31/07/2002 06:53:48
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00684277
Message ID:
00685297
Vues:
22
Alejandro,

The array to be your RowSource is best a property of some object, although it can be a global variable. It can be a property of the form. It can be a property of your list if you create one in your list class you are using. You can create properties that are arrays with the [] syntax - 'ArrayProperty[]' in the box you define the property in. The ListIndex is a property, I believe it refers to the currently selected item in the List property. and honestly, even though I use lists all the time they are integrated into my class library so I fill out properties I made and put code into methods I made and these things interact with VFP's properties and methods, so I've forgotten the details. I do remember it took a bit of work to figure out. And trying to learn how to use all the various RowSourceType systems is a waste of time. If you like arrays, then use arrays, others and myself have found that's good. In my class library I put the list onto a container, so I put my array property on that container. In my Init in the container I fill out 8 or 10 properties I made, then I have a special method on the array that fires when record pointer changes. That special method fills out the array. When user double clicks on an item an editing container comes up. It took a long time to build, but now it is a snap to program in. I also don't use combo boxes any more because I made a container with textbox and push button in it to use as a lookup type object.

Wally
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform