Promotic
WikipediaLinkedInYoutubeTwitterFacebook

NetGetAddress - method of the Pm object

Description:
Returns the computer local address in the network.
Syntax:
Variant NetGetAddress(Long nType, [Variant 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 in Web panels.
Example:
JavaScriptVBScriptSelect and copy to clipboard

var 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.16 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