J
jocke
HI, i've made a small function that counts the seconds i hours an
minutes
if i try to convert hours larger then 9 i get an error that says m
variable isn't
declared right. but i can't see anything wrong
Help wanted
Function sec(Invarde As String) As Long
Dim mystring As String
Dim antal As Integer
Dim hour As Integer
Dim minute As Integer
mystring = Invarde
antal = Len(mystring)
hour = Left(mystring, antal - 3)
minute = Right(mystring, 2)
SEC = (HOUR * 3600) + (MINUTE * 60
End Functio
minutes
if i try to convert hours larger then 9 i get an error that says m
variable isn't
declared right. but i can't see anything wrong
Help wanted
Function sec(Invarde As String) As Long
Dim mystring As String
Dim antal As Integer
Dim hour As Integer
Dim minute As Integer
mystring = Invarde
antal = Len(mystring)
hour = Left(mystring, antal - 3)
minute = Right(mystring, 2)
SEC = (HOUR * 3600) + (MINUTE * 60
End Functio