Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Using #defined constant as string
Message
De
21/11/2005 14:45:49
 
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:
01070890
Vues:
11
>>How to force MESSAGEBOX() to show d_sum value as character string without using TEXT command?
>
>Is this what you want?
>
>#define d_sum price*d_quantity
>SELECT d_sum AS yourfield FROM source_table INTO CURSOR your_crs
>SCAN
>   MESSAGEBOX('Sum formula is: '+TRANSFORM(yourfield,'9999999.99'))
>ENDSCAN
No. MESSAGEBOX() must show

Sum formula is: price*quantity*packing
Andrus
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform