Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Passing a parameter to th IN clause
Message
De
20/07/1999 14:40:36
 
 
À
20/07/1999 14:36:33
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00243695
Message ID:
00243703
Vues:
24
>Hi All,
>
>Using VFP 6.0 I can pass dates as per below but how to pass items to the IN clause? Any help will be appreciated.
>
>lcProdCds = "'F', 'G', 'H'"
>
>WORKS:
> and Actual_Office_Cplt_Dt > ldBegPer;
> and Actual_Office_Cplt_Dt < ldEndPer;
> AND SUBSTR(vOFF_DOC.PROD_CAT_CD,1,1) IN ("'F', 'G', 'H'");
>
>
>DOES NOT WORK:
> and Actual_Office_Cplt_Dt > ldBegPer;
> and Actual_Office_Cplt_Dt < ldEndPer;
> AND SUBSTR(vOFF_DOC.PROD_CAT_CD,1,1) IN ?(lcProdCds);
>
>TIA.
>
>Regards,
>
>Paige

I'm not sure that this will work, never having tried this, but
try placing the ? inside the parenthesis.

HTH

Dan
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform