Skip to content

Latest commit

 

History

History
47 lines (37 loc) · 1018 Bytes

File metadata and controls

47 lines (37 loc) · 1018 Bytes

GetNetAdapterInfo

Description

Return information about the network adapter

FUNCTION GetNetAdapterInfo(
				adapterIndex   : INTEGER;
				VAR outMacAddr : STRING): BOOLEAN;
def vs.GetNetAdapterInfo(adapterIndex):
    return (BOOLEAN, outMacAddr)

Parameters

Name Type Description
adapterIndex INTEGER
outMacAddr STRING

Remarks

from Vlado originally: index '1' is for your first network card. '2' would be your next one, if you have more than one. The function should return FALSE when the card with this index doesn't exist, so you can handle cases with many cards."

Examples

resultOK := GetNetAdapterInfo(1, 'Example');
import vs

# Return information about the network adapter.
adapterIndex = 1

ok, outMacAddr = vs.GetNetAdapterInfo(adapterIndex)
vs.Message('GetNetAdapterInfo returned: ' + str((ok, outMacAddr)))

Version

Availability: from Vectorworks 2014

Category