wValue Property (Specific to PropertyGrid Controls)

Applies to TestComplete 15.47, last modified on January 20, 2023

Description

The wValue property lets you obtain or set the value of the grid item specified by its caption or zero-based index.

Declaration

TestObj.wValue(Item)

Read-Write Property Variant
TestObj A variable, parameter or expression that specifies a reference to one of the objects listed in the Applies To section
Item [in]    Required    Variant    

Applies To

The property is applied to the following objects:

View Mode

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

Parameters

The property has the following parameter:

Item

Specifies the index of the item, whose value you want to get.

The index is zero-based, that is, the index of the first item is 0. The index of the last item is wItemCount - 1.

The caption can contain asterisk (*) or question mark (?) wildcards or regular expressions. The asterisk corresponds to a string of any length (including an empty string), the question mark corresponds to any single character (including none). To specify more complicated parts of a caption, use regular expressions.

The caption can be case-sensitive or case-insensitive depending on the value of the Use case-sensitive parameters project setting.

Property Value

The value of the specified item. If the specified item was not found, wValue returns the null value (Nothing or Empty in VBScript, nil in DelphiScript, None in Python, null in JavaScript, JScript, C++Script and C#Script) and TestComplete posts an error message to the test log.

Remarks

You can use the wValue property along with wItemCount and wLabel to iterate though grid items.

See Also

wItemCount Property (Specific to PropertyGrid Controls)
wLabel Property (Specific to PropertyGrid Controls)

Highlight search results