About This Code
Brief Description:
is application on local or not (function)
Contributor:
Bastian Wieczorek
Notes Version:
R6.x, R8.x, R7.x
Last Modified:
05 Nov 2008
OpenNTF Disclaimer
All of the program code and information presented in the OpenNTF.org Code Bin are provided "as-is", and should be used at your own risk. OpenNTF.org make no express or implied warranty about anything in the Code Bin, and OpenNTF.org will not be responsible or liable for any damage caused by the use or misuse of anything from this site. OpenNTF.org makes no guarantees about anything. Please thoroughly test all of the knowledge and code you find here before you attempt to use them in your production environment.
Code / Description
this function checks if the current application is on the server or local.
true = is on local
false = is on a server
Its a very small and easy function. But sometimes useful ;-)
Usage / Example
Function isApplicationOnLocal As Boolean
' this function checks if the current application is on the server or local.
' true = is on local
' false = is on a server
Dim session As New NotesSession
Dim thisDB As NotesDatabase
Set thisDB = session.CurrentDatabase
If (thisDB.Server = "" ) Then
isApplicationOnLocal = True
Else
isApplicationOnLocal = False
End If
End Function
Comments
Posted by Ronald Baeuerle on 11/10/2008 02:26:55 AMPossible other way...
whats about this:
notesSession.IsOnServer