Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using #defined constant as string
Message
 
À
21/11/2005 14:44:18
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9
Divers
Thread ID:
01070862
Message ID:
01070895
Vues:
19
#define d_sum price*d_quantity

SELECT 2*d_sum+1000 as hello FROM invoice

>>#define d_sum price*d_quantity as hello
>
>I'm sorry. The sample code was too simplified. I need to use d_sum inside expressions in SELECT statement.
>Real code where I tried your suggeston was
>
>
CREATE CURSOR invoice ( price N(12,2), quantity N(2), packing N(2))
>
>#define d_quantity quantity*packing
>#define d_sum price*d_quantity as hello
>
>SELECT 2*d_sum+1000 FROM invoice
>
>but this causes syntax error in select line
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform