Results 1 to 12 of 12

Thread: adding in military time

Threaded View

  1. #1

    Thread Starter
    Fanatic Member
    Join Date
    Feb 2009
    Posts
    573

    Resolved adding in military time

    im tring to get the answer +2 by takeing elasped witch is -22 from offset ?
    but its adding it
    thanks and happy 4th

    Code:
    Private Sub Command3_Click()
    Dim start1 As String
    Dim stop1 As String
    Dim elasped As String
    Dim offset As String
    
    
    
    offset = "24."
    start1 = "23."
    stop1 = "01.00"
    elasped = stop1 - start1
    
    If elasped < 1 Then
     elasped = offset - elasped
    MsgBox elasped
    
    Else
    
    MsgBox elasped
    End If
    
    
    
    
    
    
    End Sub
    Last edited by flyhigh; Jun 29th, 2012 at 07:13 AM.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width