IPAddressField()
Syntax
Result = IPAddressField(IPAddress, Field [, Format])Description
Returns the given field value of the specified IP address.
Parameters
IPAddress The IP address. For IPv6, this address needs to be created with MakeIPAddress(). Field The field to return. This value can be a value between 0 and 3 (0 being the leftmost value, 3 being the rightmost) for IPv4 and 0 to 7 for IPv6. Format (optional) The format of the IP. It can be one of the following value: #PB_Network_IPv4: an IPv4 address (default). #PB_Network_IPv6: an IPv6 address.
Return value
Returns the value of the specified field, in the range 0 to 255.
Remarks
This function is especially useful with:
- IPAddressGadget()
- MakeIPAddress()
See Also
MakeIPAddress(), IPString(), IPAddressGadget()
Supported OS
All