Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Combo boxes
Message
 
À
14/12/1999 13:53:07
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
Divers
Thread ID:
00303051
Message ID:
00303610
Vues:
12
Hi Tom...

Ed's approach, while it does work, is not the most efficient way to accomplish your goal.

If you set the RowSourceType to 8 - Structure, you can then set the Rowsource Property to the name of the table you which to view the structure of... It is important to note that after you set these properties, you need to invoke the Requery() Method of the Combo.

So, in your case, you could have the one form in the formset set the required properties and invoke the method of the combo in the other form in the formset.

>Your sample code, sir.
>
>LPARAMETER cTablename
>Select (cTablename)
>With This.Mycombobox
> .rowsourcetype=0
> .sorted=.t.
> .clear
> For nLoop=1 to Fcount()
> .additem(field(nLoop))
> Endfor
>Endwith
>
>How does this work to pass a variable(lparameter cTablename) from a combo1.value on a previous form in a formset? Currently I just get the value of the 'pick a table' combo box. Referring to this box from my current form (Search form). How would this be passed
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform