Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
When parameter not found
Message
 
À
05/01/2009 08:00:43
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Client/serveur
Divers
Thread ID:
01370321
Message ID:
01371461
Vues:
16
>PRIVATE xx
>SET ASSERTS ON
>xx="001"
>ASSERT TYPE("xx") # "U" mess "You have to put a parameter"
>
>ocs("stok",,,"select * from stok where kod=?xx") &&---- this is my cursoradapter sub-class ---
>
>
>when I run a requery() outside of this procedure I want to see a message "You have to put a parameter" but it ask me parameter at an inputbox...

Ok that alert will not fire because xx exists and has a value when the assert line is encoutnered, for some reason your code in ocs cannot see that variable and so you are prompted for the parameter. I would start debugging this by putting a suspend just before the statement in the cursoradapter calss and then using the debugger to check the status of xx as a variable.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform