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
Printable View
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
Try this.
Label1.Caption = Format(Label1.Caption, "0")
that rounds it off
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
Are you looking for
Int(caption)?
Int(1.6) is 1
Maybe this will help:
Code:Label1.Caption = Int(Label1.Caption )