SetValString Method

TestStand 2017 Help

Edition Date: November 2017

Part Number: 370052W-01

»View Product Info

Download Help (Windows Only)
NI TestStand 2014 Help
NI TestStand 2014 SP1 Help
TestStand 2016 Help
TestStand 2016 SP1 Help
TestStand 2017 Help

Syntax

PropertyObject.SetValString ( lookupString, options, newValue)

Purpose

Sets the string value of the property the lookupString parameter specifies.

Parameters

lookupString As String

[In] Pass an empty string to denote the PropertyObject to which the method applies, or pass the name of a subproperty within the PropertyObject. You can also pass lookup strings to this parameter.

options As Long

[In] Pass 0 to specify the default behavior, or pass one or more PropertyOptions constants. Use the bitwise-OR operator to specify multiple options.

newValue As String

[In] Specifies the new value for the property.

Example

LabWindows/CVI:
    TS_PropertySetValString(propObj, &errorInfo,
                            "Step.Limits.String", 0, "success");

Visual Basic (function call):
    propObj.SetValString("Step.Limits.String", 0, "success")

Visual Basic (inline):
    propObj.Step.Limits.String = "success"

Visual C++:
    propObj->SetValString("Step.Limits.String", 0, "success");


See Also

Lookup Strings

PropertyObject.GetValString

PropertyObject.SetValStringByOffset

PropertyOptions

Thread Safety of the PropertyObject API and TestStand Variables

WAS THIS ARTICLE HELPFUL?

Not Helpful