|
-
Jul 29th, 2004, 05:25 AM
#1
Thread Starter
Junior Member
money data type
hi,
please someone tell me how can i display the data type money correctly.
i have a textbox for keying tha amount of money and it also display the amount in other textbox. It always display with 4 decimal. how to solved this??
viv
-
Jul 29th, 2004, 08:08 AM
#2
Frenzied Member
what variable type are you using?
-
Jul 29th, 2004, 08:36 AM
#3
Thread Starter
Junior Member
money data type in SQL server but i do not know how to convert it in VB.Net.
Thanks,
viv
-
Jul 30th, 2004, 03:22 AM
#4
Thread Starter
Junior Member
Resolved!!
problem solved, thanks guys.
viv
-
Jul 30th, 2004, 10:46 AM
#5
Fanatic Member
Hey, how about posting what you found to be the solution of your troubles.
It could help someone else out who may be in a similar jam.
-
Jul 30th, 2004, 10:54 AM
#6
Thread Starter
Junior Member
Hi,
here is what i found to solved the problem:
Dim intTotal As Single
intTotal = CType(txt5.Text, Single) + CType(txt8.Text, Single)
Thanks guys
viv
-
Jul 30th, 2004, 11:04 AM
#7
Frenzied Member
why are u casting the variable from a single to a single?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|