Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Issue: CAST Double to Char
Message
From
04/01/2005 11:37:08
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Issue: CAST Double to Char
Environment versions
Visual FoxPro:
VFP 9
Miscellaneous
Thread ID:
00974110
Message ID:
00974110
Views:
52
I interpret the issue with joy for the new year.

Cast Double to Char is optimal in order to toast to the new year,
but it seems little adapted to make other things.
CLEAR
#define 
CREATE CURSOR casting (fn B)
INSERT INTO casting VALUES (123456789012345)
FOR k=1 TO 50
	INSERT INTO casting VALUES (fn/10)
NEXT 

SCAN
 ? fn,CAST(fn as V(100))
endscan
Expected is : CAST(fn AS V(100)) = TRANSFORM(fn,"@^")

If CAST returned the expected result,
and withed to return the result puts into effect them,
enough to make a
CAST(CAST(fn AS N(X, Y)) AS V(100))
Fabio
Reply
Map
View

Click here to load this message in the networking platform