|
-
Oct 10th, 2000, 01:08 PM
#1
Thread Starter
Hyperactive Member
Lets say if i have 5.5 in a caption how would i get just the 5
i know it has something to do with the int command
-RaY
VB .Net 2010 (Ultimate)
-
Oct 10th, 2000, 01:09 PM
#2
Addicted Member
Try this.
Label1.Caption = Format(Label1.Caption, "0")
-
Oct 10th, 2000, 01:11 PM
#3
Thread Starter
Hyperactive Member
-RaY
VB .Net 2010 (Ultimate)
-
Oct 10th, 2000, 01:12 PM
#4
Thread Starter
Hyperactive Member
hgey
the first 5.....out of 5.5 hehe
lets say if its 1.6....how do i get the 1...that might clear things up
-RaY
VB .Net 2010 (Ultimate)
-
Oct 10th, 2000, 01:20 PM
#5
Are you looking for
Int(caption)?
Int(1.6) is 1
-
Oct 10th, 2000, 01:21 PM
#6
Frenzied Member
Maybe this will help:
Code:
Label1.Caption = Int(Label1.Caption )
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
|