Information générale
Catégorie:
Gestionnaire d'écran & Écrans
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
Voir le fil de ce thread
Voir le fil de ce thread à partir de ce message seulement
Voir tous les messages de ce thread
Voir tous les messages de ce thread à partir de ce message seulement