IPAddressField()

语法

Result = IPAddressField(IPAddress, Field)
概要
Returns the given field value of the specified IP address.

参数

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.

返回值

Returns the value of the specified field, in the range 0 to 255.

Remarks

This function is especially useful with:

- IPAddressGadget()
- MakeIPAddress()

参阅

MakeIPAddress(), IPString(), IPAddressGadget()

已支持操作系统

所有

<- HostName() - Network Index - IPString() ->