Promotic
WikipediaLinkedInYoutubeTwitterFacebook

NetGetAddress - method of object Pm

Description:
Returns the computer local address in the network.
Syntax:
NetGetAddress(nType As Long, [nParam As Variant]) As Variant
Calling:
s = Pm.NetGetAddress(nType, nParam)
Parameters:
nType(Long) Specifies the address type that is returned
0 - Name of the computer in the network - for example "user1". The nParam parameter is not set.
1 - URL address - for example "http://user1/". The nParam parameter is the port number (Integer) and if it's set and differs from the standard port 80, then it is included into the URL address in the form of for example "http://user1:85/".
2 - IP address of the computer in the network - for example "192.21.0.56". The nParam parameter is not set.
nParam[optional] (Variant) Supplementary parameter (e.g. port number)
Note:
This method is not functional for Web panels in JavaScript language (and therefore it is not working in Web panels).
Example:
VBScriptSelect and copy to clipboard

Dim s
s = Pm.NetGetAddress(0)  'Returns e.g. the string: "user1"
s = Pm.NetGetAddress(1)  'Returns e.g. the string: "http://user1/"
s = Pm.NetGetAddress(1, 1029)  'Returns e.g. the string: "http://user1:1029/"
s = Pm.NetGetAddress(2)  'Returns e.g. the string: "128.0.0.65"
PROMOTIC 9.0.0 SCADA system documentation - MICROSYS, spol. s r.o.

Send page remarkContact responsible person
Navigation:
 
- Pm
 
- Abs
- Cos
- E
- Exp
- LN2
- NetGetAddress
 
 
- PI
- Pow
- Sin
- Tan
© MICROSYS, spol. s r. o.Tavičská 845/21 703 00 Ostrava-Vítkovice