Description: This function returns a pointer to an array of all available servers visible from this workstation.
Returns: Pointer
Usage: Script
Format: ServerList(Obsolete, Domain, Obsolete)
Parameters: Obsolete is no longer used, but is maintained for backward compatibility with previous versions of VTS; set to 0.
Domain { text } { required } { no default: }
Any text expression for the domain. If this is invalid, the current domain will be used.
Obsolete is no longer used, but is maintained for backward compatibility with previous versions of VTS; set to 0.
Comments: This function will return the resultant array of servers, or if network problem is encountered or Domain is not found on the network, an error code will be returned.
Example:
If ! Valid(serverArray);
[
serverArray = ServerList(0, WkStaInfo(2), 0);
]
The second parameter in the ServerList statement is included as an added example of how many functions work together - in actual fact it is redundant, since it simply designates Domain as being the current domain, which could also have been accomplished by simply entering an invalid.
See Also: