Promotic
WikipediaLinkedInYoutubeTwitterFacebook

NetGetAddress - method of object Pm

Description:
Getting 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) defines 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 so far functional for Web Panels.
Example:
s = Pm.NetGetAddress(0) 'return e.g. the string: "user1"
s = Pm.NetGetAddress(1) 'return e.g. the string: "http://user1/"
s = Pm.NetGetAddress(1,1029) 'return e.g. the string: "http://user1:1029/"
s = Pm.NetGetAddress(2) 'return e.g. the string: "128.0.0.65"
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