Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
ComboBox SQL Variable
Message
 
 
À
20/02/2008 09:25:23
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 8 SP1
Divers
Thread ID:
01294216
Message ID:
01294223
Vues:
15
>It's not allowed to use "THISFORM.MyValue" in the SQL of a ComboBox RowSource. I thought if I created a variable in the form's INIT that would keep it in scope and I could use that in the SQL, but it's out of scope. I hate to use a global variable, but is that the best solution?

Too bad you would not see it:

Re: Form variable in combobox rowsource Thread #936474 Message #936538

Quote:

Set up the RowSOurce of the Combo box using code in the form's Init like so:

lcRowSOurce = [SELECT descriptio, repertoire FROM pco ]
lcRowSOurce = lcRowSource + [WHERE pco.idper = ( thisform.cformid ) ]
lcRowSOurce = lcRowSource + [ORDER BY descriptio INTO CURSOR curFormul]
Thisform.MyCombo.RowSOurce = lcRowSOurce
Thisform.MyCombo.Requery()
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform