Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
Sub monitor_use()
Dim byt_fo As Byte
byt_fo = FreeFile
Open TRACK_FILE For Append As #byt_fo
Print #byt_fo, "Opened by : " & funcs.ReturnUserName & " on " & Now
Close #byt_fo
End Sub
Function ReturnUserName() As String
Dim str_r As String * 255
Dim lng_s As Long
Dim str_t As String
str_t = ""
lng_s = GetUserName(str_r, 255)
lng_s = InStr(1, str_r, Chr(0))
If lng_s > 0 Then
str_t = Left(str_r, lng_s - 1)
Else
str_t = str_r
End If
ReturnUserName = UCase(Trim(str_t))
End Function