Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
'field' phrase is not found error when trying to run for
Message
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Divers
Thread ID:
00113817
Message ID:
00114057
Vues:
22
I vaguely remember an option for combo boxes to set the row source to an SQL statement. Would this method have the same result? I've never actually tried to do this, so I don't know how it works.

-Michelle



>Chuck,
>
>It would be better encapsulation to put this code in the Init event of the combobox itself:
>
>
with this
>   select ...
>   .RowSourceType = 2
>   .RowSource = "tmp"
>   .ColumnCount = 3
>endwith
>The object ought to do the work to get itself going. The form shouldn't be responsible for it.
>
>>>Select vac.nmbr,prlink.fname,prlink.lname Into cursor tmp ;
>>>Where vac.nmbr=prlink.nmbr
>>>Thisform.combo1.rowsourcetype=2
>>>Thisform.combo1.rowsource="tmp"
>>>Thisform.combo1.columncount=3
>>
>>Thanks. Do I place this code in the InitEvent of the form?
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform