Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Why cant pass value by reference in WHERE clause?
Message
 
 
À
24/07/2001 04:27:14
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00534258
Message ID:
00534346
Vues:
16
>Hi,
> I have a UDF funtion which will be called in my SQL statement - WHERE clause. I need ot pass a variable by reference to this UDF funcion. However, it doesn't work. The variable doesn't passed by reference (I try to change the value in UDF function by the value reset on next call). It works if i call it from HAVING clause. Any ideas?
>
>Thank you
>
>
>
>SELECT * FROM csrInvoice ;
>WHERE THIS.Include(Qty, StockQty, @lnCount, @lnSum) ;
>INTO CURSOR csrInvoice
>
>
John,
Since that doesn't work, why not simply not pass the variables and use private variables set up before the SQL statement. If the variables are private in scope they are visible to the function called in the SQL statement.

HTH.
Larry Miller
MCSD
LWMiller3@verizon.net

Accumulate learning by study, understand what you learn by questioning. -- Mingjiao
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform