GetHostProperties
This method allows the user to get information about the current machine, program, and BIC user.
Syntax
GetHostProperties(appType as CDRApplicationName, appSubtype as Long, appInstance as String, appUserName as String, appIP as String, appMachineName as String, appLicensee as String)
Description | Definition |
---|---|
appType | Type of the calling application. The parameter can be read from script.
For more information, see CDRApplicationName. |
appSubType | For internal use only |
appInstance | Runtime Service instance name, if ApplicationName is TANRuntimeServer.
Not used for other applications. |
appUsername | Login name of the current BIC user.
|
appIP | IP address of the computer. |
appMachineName | Machine name running the script. |
appLicensee | Customer name of the used license file. |
Sample Code
The following sample code calls the GetHostProperties in the initialize event. The method returns information into variables as to where the script is executed, who is executing it, and which program module is executing it.
Private Sub ScriptModule_Initialize(ByVal ModuleName as String)
Dim appInstance as String
Dim appSubtype as Long
Dim appUserName as String
Dim appIP as String
Dim appMachineName as String
Dim appLicensee as String
Dim appType as CDRApplicationName
Project.GetHostProperties(appType, appSubtype, appInstance, appUserName, appIP, appMachineName, appLicensee)
End Sub