Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
When parameter not found
Message
 
To
05/01/2009 08:00:43
Metin Emre
Ozcom Bilgisayar Ltd.
Istanbul, Turkey
General information
Forum:
Visual FoxPro
Category:
Client/server
Miscellaneous
Thread ID:
01370321
Message ID:
01371461
Views:
15
>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.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform