vuMACAddress(Nmbr)
vuMACAddress(Long), CSTRING
Description
Returns the MAC address of the specified network adapter. Use vuMACCount() to determine how many adapters are available.
Parameters
| Parameter |
Data Type |
Description |
| Nmbr |
LONG |
Index of the adapter (within the range returned by vuMACCount()) |
Returns
A CSTRING containing the MAC address in the format XX-XX-XX-XX-XX-XX (hexadecimal pairs).
Example
IF vuMACCount() > 0
MESSAGE('My MAC address for adapter 1 is ' & vuMACAddress(1))
END
Notes
- MAC addresses are returned as hexadecimal pairs separated by hyphens.
- Combine with
vuMACCount() to enumerate all adapters.