Results 1 to 8 of 8

Thread: [RESOLVED] how can I display secs?

Threaded View

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Jan 2007
    Posts
    199

    Resolved [RESOLVED] how can I display secs?

    Code:
    private sub GetElapsed()
    CurrentElapse = DateDiff("n", Now, EndLog)
    
    txtElapse.Text = Formatter(CurrentElapse) 
    end sub
    Code:
    Public Function Formatter(b As Long) As String
      If (b Mod 60) < 30 Then
        Formatter = Str(FormatNumber(b / 60, 0)) & " hrs " & (b Mod 60) & " mins "
      Else
        Formatter = Str(FormatNumber(b / 60, 0) - 1) & " hrs " & (b Mod 60) & " mins"
      End If
    End Function
    how can I include secs to display?
    Last edited by tokneneng; Jan 3rd, 2007 at 12:32 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