Does anyone have a code I could use in my log? eg. [10:13:57] Refreshed... No random events [10:13:59] Refreshed... No random enevnt Thanks, Oddworth
Code (Text): Private Type SYSTEMTIME wYear As Integer wMonth As Integer wDayOfWeek As Integer wDay As Integer wHour As Integer wMinute As Integer wSecond As Integer wMilliseconds As Integer End Type Private Declare Sub GetSystemTime Lib "kernel32" (lpSystemTime As SYSTEMTIME) Private Sub Form_Load() Dim SysTime As SYSTEMTIME 'Set the graphical mode to persistent Me.AutoRedraw = True 'Get the system time GetSystemTime SysTime 'Print it to the form Me.Print "The System Date is:" & _ SysTime.wMonth & "-" & SysTime.wDay & "-" & SysTime.wYear Me.Print "The System Time is:" & _ SysTime.wHour & ":" & SysTime.wMinute & ":" & SysTime.wSecond End Sub that is what I found
Well, the code to get the current time is "Time", nothing else. For my log I use this code: Code (Text): Log.AddItem "<" & Time & "> Start!" Really simple