There is a format currency function in VBScript also. But
the thing you are missing is that in order to use that in
your asp server-side code, you will have to submit the
form first. It is possible to use VBScript on the client-
side, but that is only advisable if you have control over
the browser the users are using. IE with VBScript
enabled. In that case u can write script tags with the
appropriate calls to your vbscript code. like this:
u can call a function
<input type="text" name="blah" onBlur="FormatThis(this);">
or call the FormatCurrency function
<INPUT type="text" name="blah"
onBlur="VBSscript:FormatCurrency(no reference handy)">
GL
-----Original Message-----
Patrick J. Schouten wrote on 13 jul 2003 in
microsoft.public.inetserver.asp.general:
I am new to ASP/VBScript and I am trying to format a
texbox when a user exits it. In Visual Basic you could put the
following in the Exit property of the textbox:
textbox1 = Format(textbox1, "Currency")
Is this possible in ASP/VbScript?
No, it has a
FormatCurrency Function
FormatNumber Function
see:
<http://msdn.microsoft.com/library/
en-us/script56/html/vsfctformatnumber.asp>
--
Evertjan.
The Netherlands.
(Please change the x'es to dots in my emailaddress)
.