Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Crank up the volume
Message
 
 
To
17/06/2013 09:42:22
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP3
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Miscellaneous
Thread ID:
01576540
Message ID:
01576543
Views:
79
lcStr = '95.00X32.00X45.00'
ALINES(laSize, lcStr, "X")
? VAL(laSize[1]), VAL(laSize[2]), VAL(laSize[3])
? "Volume =", VAL(laSize[1]) * VAL(laSize[2]) * VAL(laSize[3])
>
>My customer is sending me this string '95.00X32.00X45.00', the numbers representing length, width and height in CM'S, from which I am to calculate the volume. I'm sure if I spent a few days I could come with an algorithm to parse this out in order to do the calculation, but has anyone done this already?
>Thanks.
>
>Luke
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform