R RR SPSCC Oct 31, 2003 #1 I have a textbox bound to a dataview field. How can I format the value to display as currency? Thanks in advance.
I have a textbox bound to a dataview field. How can I format the value to display as currency? Thanks in advance.
B Bernie Yaeger Oct 31, 2003 #2 Hi RR, This should work: FormatCurrency(textbox1.Text, , , TriState.True, TriState.True) HTH, Bernie Yaeger
Hi RR, This should work: FormatCurrency(textbox1.Text, , , TriState.True, TriState.True) HTH, Bernie Yaeger
R RR SPSCC Nov 3, 2003 #3 Can't see that this had any effect - instruction runs and the value is still displayed without $ (formatting)....
Can't see that this had any effect - instruction runs and the value is still displayed without $ (formatting)....
B Bernie Yaeger Nov 3, 2003 #4 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, 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
B Bernie Yaeger Nov 8, 2003 #5 Hi ALexandre, The exact code is currencytext.Text = FormatCurrency(currencytext.Text, 2, TriState.False, TriState.True, TriState.True) Bernie
Hi ALexandre, The exact code is currencytext.Text = FormatCurrency(currencytext.Text, 2, TriState.False, TriState.True, TriState.True) Bernie