Sample Macro to Detect PASSPORT Version
PASSPORT Web to Host
TN3270, TN5250, VT, SCO ANSI, Wyse 60
I need to detect what PASSPORT Web to Host version my users are running so I can instruct them to upgrade to the current version. How can this be done?
The latest Web to Host version, 2007-1516-1, allows for older client versions to connect and work with the new version on the server. However, the client will not see any of the new enhancements and fixes available in the new version. It is recommended that the client be upgraded to the new version as soon as possible. To do this, the administrator can write a simple macro to check for the client version number at launch time. Follow the steps below to do this:
Note: “Version 2007-1516-1” is used as an example in the script. You will need to change the version number to the corresponding version of Web to Host that you are running.
If you wish to direct your users to a customized web page with specific instruction on how to download the new version, you can use the sample macro below:
Sub ZMain()
Dim iRet
strVer= GetPassportVersion ( )
If strVer <> "Version 2007-1516-1" Then
iRet= MsgBox ("You're running an old Web to Host client," & strVer & ". Please contact your System Administrator to upgrade to the latest version.",4,"PASSPORT Web to Host")
If iRet = 6 Then
iRet = Shell ("C:\Program Files\Internet Explorer\iexplore.exe " & "http://www.zephyrcorp.com", 1)
End IF
End If
End Sub
Note: replace "http://www.zephyrcorp.com" with your desired web page.
sample, macro, detect, PASSPORT, version, startup