>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.