Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Crank up the volume
Message
De
17/06/2013 10:05:31
Dragan Nedeljkovich (En ligne)
Now officially retired
Zrenjanin, Serbia
 
 
À
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:
01576549
Vues:
59
>Hi All,
>
>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.

1) strtran() will do the job, chrtran() would be my personal preference

2) writing cm in uppercase and with a 'S threw me off completely. My first thought was "who the hell is this C. M. guy, and, ahem, dimensions in his what?". My second thought was that CM was something related to an audio control OCX (and related to thread title).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform