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
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top