The problem is to know what to pass in pr. U++ help tells that pr should be an integer but all my trials fail except when passing pr = 0. In that case, all the records from the table are obtained ignoring the Where condition.
Another way is to use SqlVal but the problem is to get a SqlBool expression from a SqlVal.