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.
Private Function Check_UserNumber() As Integer
'// Check the number of app users in the database.
Dim result As dtoResult
Dim dtoSess As DtoSession
Dim SessMonitor As DtoMonitor
Dim Clients As DtoSQLClients
Dim SingleCl As DtoSQLClient
Dim i As Integer
Set dtoSess = New DtoSession
result = dtoSess.Connect("<MyServer>", "", "")
If result = Dto_Success Then
Set SessMonitor = dtoSess.Monitor
Set Clients = SessMonitor.SQLClients
For i = 1 To Clients.Count
Set SingleCl = Clients(i)
If Trim$(SingleCl.AppDesc) = App.Title Then
Check_UserNumber = Check_UserNumber + 1
End If
Set SingleCl = Nothing
Next i
Set Clients = Nothing
Set SessMonitor = Nothing
End If
dtoSess.Disconnect
Set dtoSess = Nothing
End Function