Information générale
Catégorie:
Gestionnaire d'écran & Écrans
Titre:
List box 2 based on list box 1
I have a simple form to print select values in an invoice table. It has 2 drop down lists and view/print cancel buttons. drop down list 1 is a list of vendors (it displaces the vendor name but also contains a vendor code). User picks and vendor and I want drop down list 2 to have only orders for that vendor. I saved the selected vendor code in a property and tried to use it in the select statement for drop down list 2. VFP says This.name or ThisForm.name can only be used in methods. I think I could declare a private variable in in init of form but I am not sure that would work and it seems very unOOPs like. What is the best way to do this?
Suivant
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