Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
.NET format() or C sprintf() functions for VFP?
Message
From
22/04/2005 15:39:25
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
01007631
Message ID:
01007641
Views:
17
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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform