Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
.NET format() or C sprintf() functions for VFP?
Message
De
22/04/2005 15:39:25
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Divers
Thread ID:
01007631
Message ID:
01007641
Vues:
19
Hi Sergey,

>Wouldn't TEXTMERGE() provide the same capability?

I love TEXTMERGE()'s power, but what I'm looking for is the ability to use the same formatting strings one would use with .NET's format() method as illustrated below:

// C#
String.Format("{0:c}", pmCurrency );
String.Format("{0:T}", ptTime );
String.Format("{0:d}", pdDate );
String.Format("{0:#,###}", pnNumber );

* this is what I would like to do in VFP
vfpFormat("{0:c}", pmCurrency )
vfpFormat("{0:T}", ptTime )
vfpFormat("{0:d}", pdDate )
vfpFormat("{0:#,###}", pnNumber )
javascript:MessageSubmit()

I'm not looking for a .NET interop solution.

Malcolm
Malcolm Greene
Brooks-Durham
mgreene@bdurham.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform