Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
CBO's RowSource, requery, downclick...?
Message
De
14/08/1998 07:54:42
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00126396
Message ID:
00126838
Vues:
15
>>>Sawadee,
>>>
>>>I have a continual headache with combo boxes. I'm using SQL in the Init of the control ie.
>>>
>>>this.rowSourceType = SQL Select
>>>
>>>this.Init -----
>>>
>>>dodefault()
>>>this.RowSource = ''
>>>this.RowSource = "Some SQL statement to tmpcursor"
>>>this.requery()
>>>
>>>This works fine when the form is started with about 10 different combo boxes using the same technique. Then I use a RightClick to drop a menu to add things to the maintenance tables that are the source of the combo box lists. Then, after the maintenance form is closed, I try to refresh the list by calling, in DownClick, the same routine that loaded the combo box the first time, which the documentation sez is the best place to add code to make sure your combo box contains the most recent data. ...It don't work. :( I've tried a multitude of permutations of this scenario to no avail. But, if I exit the form and start it again, walaa! Help me.
>>>
>>>Eric K.
>>Eric,
>>Set rowsourcetype and rowsource (SQL) in PEM sheet (or keep in init if you prefer) but not requery. In gotfocus just add a this.requery.
>>Cetin
>
>Thanx,
>
>BTW, How do I get the combo to search like help, not one character at a time. Setting incrementalsearch seams to have the same effect either way.
>
>Eric K.
Eric,
Check for quikfil4.zip in files\classes section by Eugene M. Steinbacher. I think he has made a good job there.
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
Répondre
Fil
Voir

Click here to load this message in the networking platform