AdsAmsSaveClientPort
Prevents the ADS-OCX from assigning the client's port dynamically.
object.AdsAmsSaveClientPort As Boolean
Comment
If you do not prescribe a port number yourself, the ADS-OCX will automatically assign a port number. This will always be greater than 32767. Note that this port number is different after each start.
If your Visual Basic program is to receive a fixed port number, you must set the desired port number in the program using the AdsAmsClientPort property. In that case the value must be between 16000 and 32000.
You can also set the AdsAmsClientPort property by means of the ADS-OCX properties window during the development phase. SavePort must then be set to TRUE. This will cause the ADS-OCX not to change the port number.
See also the AdsAmsClientPort property.