Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Deathgrip struggle with the combobox
Message
 
 
À
Tous
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Deathgrip struggle with the combobox
Divers
Thread ID:
00192987
Message ID:
00192987
Vues:
60
Hi. Frustrated 2.6 programmer here, trying to deal with new properties and methods associated with VFP objects and associated behaviors, which wasn't all that consistent and predictable for similar objects in 2.6, even!
I'm planning on developing a Combobox class that will eventually end up on a grid, but I want to ascertain behavior in a clean environment first. So: I instantiated a Cbobox from the FoxPro 6.0 base class with the following properties:
RowSource = Devices.Serialno,dModelno,DeviceCode
RowSourceType = 6 - Fields
ColumnCount = 2
ColumnWidth = 100,100,0
BoundColumn = 3
DisplayValue = Devices.Serialno

and the following code in these methods:
INIT:
THIS.VALUE = (Devices.DeviceCode)

BTW, I *have* to include the parentheses and an equal sign - "=" - in this property field in order for a value to show up! Which it does, but then, only part of the time. What am I doing wrong here? I know, unclear on the concept. Before anyone utters the classic RTFM, I did!

Then, in the INTERACTIVECHANGE:
THISFORM.REFRESH()

My test form opens the free table (not a data environment session) and sets the order in the form class LOAD method - which seems to account for why the popup displays an ordered list of serial numbers.

So what is my question?
Well, the combobox displaying the right info would be nice. When the form first comes up the first time, the combobox displays the correct serial number. If I close the form and bring it back up, it doesn't display anything.
I hope I was clear enough. TIA...
Robin
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform