IPAddress Interface Reference

A IPAddress control enables the user to specify an IP Address. More...

Inheritance diagram for IPAddress:

Inheritance graph
Collaboration diagram for IPAddress:

Collaboration graph
List of all members.

Public Member Functions

 SetRange ([in, range(0, 3)] LONG Index,[in] BYTE Min,[in] BYTE Max)
 Sets the valid range for the specified field in the Control.

Properties

ULONG RW Value []
 Gets or sets the IP Address in the integer form.
VARIANT_BOOL R IsBlank []
 Returns true if the address fields is empty.

Detailed Description

A IPAddress control enables the user to specify an IP Address.

When the user changes selection, the OnChange event occur.

See also the method CreateIPAddress of the Frame.

Example (JScript):

o = new ActiveXObject("Scripting.WindowSystemObject")
o.EnableVisualStyles = true

f = o.CreateForm(0,0,0,0)

f.ClientWidth = 200
f.ClientHeight = 80
f.CenterControl()

IPAddress = f.CreateIPAddress(10,10,150,30)

Str = "10.64.1.2"
Values = Str.split(".")

Value = 0

for (i = 0; i<4; i++)
        Value |= new Number(Values[3-i]) << i*8

IPAddress.Value = Value

f.Text = Str

f.Show()

o.Run()

Result:

IPAddress.jpg


Member Function Documentation

SetRange ( [in, range(0, 3)] LONG  Index,
[in] BYTE  Min,
[in] BYTE  Max 
)

Sets the valid range for the specified field in the Control.

Parameters:
Index Index for the field.
Min The minimum value for the field.
Max The maximum value for the field.


Property Documentation

VARIANT_BOOL R IsBlank

Returns true if the address fields is empty.

ULONG RW Value

Gets or sets the IP Address in the integer form.


WSO 1.1 Documentation. Date modified:Wed Aug 12 18:12:46 2015. (C) Veretennikov A. B. 2004-2015