Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
How to implement vfp str(n,w,d)
Message
From
22/04/2007 05:33:41
 
 
To
All
General information
Forum:
ASP.NET
Category:
Coding, syntax and commands
Title:
How to implement vfp str(n,w,d)
Environment versions
Environment:
C# 2.0
Miscellaneous
Thread ID:
01218661
Message ID:
01218661
Views:
57
vfp toolkit for .net does not contain str(n,w,d) implementation.
How implement it in C#?

I tried code below. How to add width and presicion paramers to it ?

public static string Str( float number, ushort width, ushort presicion) {
return number.ToString();
}

Should return string whose size if width characters, left padded by spaces and having presicion characters after decimal point using current culture decimal separator.
Andrus
Next
Reply
Map
View

Click here to load this message in the networking platform