SetAddress Method (IPAddress Controls)

Applies to TestComplete 15.46, last modified on January 09, 2023

Description

Use the SetAddress method to assign a new IP address as a sequence of four numeric fields.

To set a new IP address in a textual form use the wAddress property.

Declaration

TestObj.SetAddress(Field1, Field2, Field3, Field4)

TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
Field1 [in]    Required    Integer    
Field2 [in]    Required    Integer    
Field3 [in]    Required    Integer    
Field4 [in]    Required    Integer    
Result None

Applies To

The method is applied to the following object:

View Mode

This method is available in the Object Browser panel and in other panels and dialogs in both Basic and Advanced view modes.

Parameters

The method has the following parameters:

Field1, Field2, Field3, Field4

Numeric fields that specify parts of the new IP address. The range for each field is 0 to 255. If filling the entire field is not required by the application, then you can enter fewer than three digits.

Result Value

None.

Example

To view an example that demonstrates how to use the SetAddress action, see Setting an IP Address in Desktop Windows Applications.

See Also

Setting an IP Address in Desktop Windows Applications
wAddress Property (IPAddress Controls)
Clear Method (IPAddress Controls)

Highlight search results