Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ComboBox ControlSource
Message
De
19/05/1999 08:39:21
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
19/05/1999 07:31:10
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00220336
Message ID:
00220362
Vues:
27
>I have a series of Comboboxes that I want to contain 2 columns. The 1st column is a 1 or 2 character code that is used in the table and our DOS user's enter easily from habit. What our designer wants is to display the associated text (column 2) in a label beside the control. If the user makes an entry, the valid event fires and updates the label. However, when the user is pressing the "NEXT" toolbutton, the control updates, but I can't find an event that fires to update the label. I read in Hacker's Guide that the ProgramaticChange event fires when Displayvalue or Value is changed via code. That must mean my code because by simply moving the record pointer in the associated view doesn't fire any event that I can see. Do I understand this behavior correctly?
>
>TIA
>Mike
Mike,
Try using interactivechange + refresh. Move valid code to interactivechange. ie:
* interactivechange
thisform.lblDescription.caption = this.list(this.listindex,2)
* refresh
thisform.lblDescription.caption = this.list(this.listindex,2)
Refresh code is there to provide "refresh" when navigation buttons are used.
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform