|
-
Mar 15th, 2003, 12:16 AM
#1
Thread Starter
Lively Member
txt box decimal to long Resolved
How do i get VB to round up a decimal?
Last edited by Ihasn; Mar 15th, 2003 at 12:26 AM.
Patrick Pierson
-
Mar 15th, 2003, 12:20 AM
#2
VB Code:
Private Sub Command1_Click()
MsgBox (Round(Text1.Text, "0"))
End Sub
when you quote a post could you please do it via the "Reply With Quote" button or if it multiple post click the "''+" button then "Reply With Quote" button.
If this thread is finished with please mark it "Resolved" by selecting "Mark thread resolved" from the "Thread tools" drop-down menu.
https://get.cryptobrowser.site/30/4111672
-
Mar 15th, 2003, 12:26 AM
#3
Thread Starter
Lively Member
-
Mar 15th, 2003, 03:33 AM
#4
Lively Member
i don't what Nightwalker meant by that (clarify it for me).. but i would do it this way, tho:
Text1.Text = Round(Val(Text1.Text), 0)
this would round up the value of the txt box to 0 decimal places..
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
|