Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Rpt Variable being obstinate
Message
De
07/11/2008 05:14:05
 
 
À
07/11/2008 05:02:38
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire de rapports & Rapports
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01360157
Message ID:
01360415
Vues:
6
>>You have to specify the width and the decimal places when using STR(). Try this:
>>
>>? STR( SumBooked / SumQuantity * 100,5,2) +"%"
>>
>>
>>Regards
>>Kevin
>
>Good point,Kevin, but you don't need to. That is to be precise about how many sig figs, dec places etc. But an argumentless STR() returns a value OK.

Hi,
From Help:
If nLength isn't included, the length of the character string defaults to 10 characters.
If nDecimalPlaces isn't included, the number of decimal places defaults to zero.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform