Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
String.Format
Message
 
 
À
18/02/2013 12:13:03
Information générale
Forum:
ASP.NET
Catégorie:
Code, syntaxe and commandes
Titre:
Versions des environnements
Environment:
C# 4.0
OS:
Windows 7
Network:
Windows 2003 Server
Database:
MS SQL Server
Divers
Thread ID:
01566272
Message ID:
01566299
Vues:
43
>
>	static void Main()
>		{
>
>			decimal[] values = {
>								   11211105.99m,
>								   0m, 
>								   1m
>							   };
>
>			foreach (decimal x in values)
>				Console.WriteLine("{0,20:$#,##0.00}", x);
>			
>
>			StringBuilder sb = new StringBuilder();
>			sb.AppendFormat("{0,20:$#,##0.00}",  11211105.99m);
>			Console.WriteLine(sb.ToString());
>			Console.ReadLine();
>		}
>
>
>
>
In C# with your code

-$3.20

and in VFP

$-3.20

In other words, the - is after $ in VFP. What should I change to get that?

Although I think it's so minor, that I should probably be OK with what I have.
If it's not broken, fix it until it is.


My Blog
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform