i have a label with "3hrs 5minz 3secs" in it ...can i make VB ignore the letters in that so i can use it in a Sum or in a Greater Than (>) or Less Than situation (<)...because with the letters in it i cant do something like...
If Alabel.Caption > SomeotherLabel.Caption Then
Label.Caption = AnotherLabel.Caption
End If
coz if i have letters in em VB wont let me do that but if i have just numbers in it i can use the
If Val(Label.Caption) > Val(Label1.Caption) Then
Yadayadayada
End If
please help :s and no..i cant just get rid of the letters :p lol please help
PS.. if u still dont get what this is about...more simpler...how can i ignore the letters in a Label caption but still have them showing
Question
DigitalDJ
ok peepz
try to figure this out lol
i have a label with "3hrs 5minz 3secs" in it ...can i make VB ignore the letters in that so i can use it in a Sum or in a Greater Than (>) or Less Than situation (<)...because with the letters in it i cant do something like...
If Alabel.Caption > SomeotherLabel.Caption Then
Label.Caption = AnotherLabel.Caption
End If
coz if i have letters in em VB wont let me do that but if i have just numbers in it i can use the
If Val(Label.Caption) > Val(Label1.Caption) Then
Yadayadayada
End If
please help :s and no..i cant just get rid of the letters :p lol please help
PS.. if u still dont get what this is about...more simpler...how can i ignore the letters in a Label caption but still have them showing
thnx
digi
Link to comment
Share on other sites
7 answers to this question
Recommended Posts