Formatting

  • Thread starter Thread starter RR SPSCC
  • Start date Start date
R

RR SPSCC

I have a textbox bound to a dataview field. How can I format the value to
display as currency? Thanks in advance.
 
Hi RR,

This should work:
FormatCurrency(textbox1.Text, , , TriState.True, TriState.True)



HTH,



Bernie Yaeger
 
Can't see that this had any effect - instruction runs and
the value is still displayed without $ (formatting)....
 
Hi,

I have the code I originally sent you in the textbox's leave event - after
entering, say, 345.77 I tab out of the textbox - it then displays $345.77.

HTH,
Bernie
 
Hi ALexandre,

The exact code is
currencytext.Text = FormatCurrency(currencytext.Text, 2, TriState.False,
TriState.True, TriState.True)

Bernie
 
Back
Top