<< Click to Display Table of Contents >> Navigation: ThinBASIC Modules > INet > INET_GetIp |
Description
Returns the number of IPs configured and their values.
Syntax
sIp = INET_GetIp(Idx)
Returns
String.
Parameters
Name |
Type |
Optional |
Meaning |
idx |
Number |
No |
Index to the requested IP information. Idx = 0 returns the number of IPs present Idx from 1 to n will return the configured IP with n = INET_GetIp(0) |
Remarks
Restrictions
See also
Examples
USES "INET"
DIM Msg as STRING
DIM nIP as LONG
nIP = INET_GETIP(0)
Msg += "You have " + nIP + " IPs on your box." + $CRLF
If nIP > 1 Then
Msg += "They are:" + $CRLF
Else
Msg += "It is:" + $CRLF
End If
For IPCount = 1 To nIP
Msg += INET_GETIP(IPCount) + $CRLF
Next
MSGBOX 0, Msg