Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crank up the volume
Message
 
 
À
17/06/2013 09:42:22
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Windows XP SP3
Network:
Windows 2008 Server
Database:
Visual FoxPro
Application:
Desktop
Divers
Thread ID:
01576540
Message ID:
01576543
Vues:
80
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform