Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Major Combo Box Problem
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00027554
Message ID:
00027919
Vues:
32
>>>>>Tom, I'm being lazy & not testing this, but will data NOT in the Select curor really show in the combo if you put the Select statement in the INIT? Sure it will if the controlsource data for the first record IS in the Select cursor, but that's not what Richard asked. I've only been able to get this data to show if I'm using an array or additem type source for the combo data.
>>>>
>>>>Barbara
>>>>
>>>>Gonna may me work, heh? (s)
>>>>
>>>>This is the code from my cboDataLU base class init():
>>>>
>>>>this.rowsource = ;
>>>> 'select &lcLUFields ;
>>>> from &lcLUTable ;
>>>> &lcSQLWhere ;
>>>> into cursor &lcLUCursor ;
>>>> order by &lcLUKeyField'
>>>
>>>
>>>I think we're talking about 2 different things tonight. Or maybe I need more coffee....
>>>
>>>Look, I like to see you work for a change (if copy/paste can be considered work ;-) This code will load the combobox from a table, but the combo STILL shows a blank if the actual data in the controlsource field isn't in your cursor.
>>>
>>>I can't make data NOT in the combo's data show UNLESS the combo is loaded with an array or additem().
>>>
>>>Barbara
>>
>>It will show a cursor. If the data is not there then of course it will not show. I guess I really don't understand. I use a cursor so I can keep the latest & greatest in the combo in a network situation.
>>
>>Tom
>
>Try a combo with an array sometime, and put data in the linked field that ISN'T in the combo's array. It shows up at the bottom of the combo's list until you move to another record. Sometimes that's good, more often not. I use it when there's a lot of old data that users want to see, but not change to the new version.
>
>Barbara

That's one reason I run directly off of Cursors.

Tom
Tom
--------------------------------
Tom O'Hare
407-299-4268 -- tom@redtile.com -- http://www.redtile.com/
Independent Programmer Using Visual FoxPro, Visual Basic & more...
Operations Manager -- Virtual FoxPro User Group (VFUG)
http://www.vfug.org/ -- tom@vfug.org
President -- Central Florida FoxPro User Group (CFFUG)
http://www.redtile.com/foxpro/
Universal Thread Most Valued Professional (MVP)
http://www.transformation.com/foxpro/
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform