Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Using #defined constant as string
Message
From
21/11/2005 14:45:49
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
01070862
Message ID:
01070890
Views:
12
>>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
Previous
Reply
Map
View

Click here to load this message in the networking platform