WrapFormat is very simple to use. It provides a single method as follows :
DoFormat(varData,[strFormatString]) | Formats the variant according to the optionally passed Format String |
Sample ASP Code for using the component is as follows :
<% Dim W Dim A Set W = Server.CreateObject("WrapFormat.Format") ' Use this for numeric formatting : Response.Write "Here is 22000 formated as a currency : " & W.DoFormat(22000,"ZAR ###,###,##0.00") ' Use this for DateTime formating Response.Write "The date is now : " & W.DoFormat(Now,"d-mmmm-yyyy hh:mm:ss") Set W = Nothing %>
accesses since 24-Jul-1999 |