This method is obsolete. See the Remarks section below. |
Description
Assigns a definite value of the Obj object’s property specified by its name.
Declaration
BuiltIn.SetValue(Obj, PropertyName, Param1, Param2, ..., Value)
Obj | [in] | Required | Variant | |
PropertyName | [in] | Required | String | |
Param1 | [in] | Optional | Variant | |
Param2 | [in] | Optional | Variant | ... |
Value | [in] | Required | Variant | |
Result | None |
Applies To
The method is applied to the following object:
Parameters
The method has the following parameters:
Obj
The object to which the desired property belongs.
PropertyName
The name of the property whose value you want to set.
Param1, Param2, ..., ParamN
Specify the corresponding parameters of the desired property that are needed to set the value.
Value
The value that you want to assign to the property.
Result Value
None.
Remarks
This method is obsolete. It is supported for backward compatibility only. To set the value of an object's property, use the aqObject.SetPropertyValue
method.
Example
The following code changes the Caption
property of a form:
JavaScript, JScript
SetValue(w, "Caption", "New Caption");
Python
w = p.Window("MainForm", "", 1)
SetValue(w, "Caption", "New Caption")
VBScript
SetValue w, "Caption", "New Caption"
DelphiScript
SetValue(w, 'Caption', 'New Caption');
C++Script, C#Script
BuiltIn["SetValue"](w, "Caption", "New Caption");
See Also
aqObject.SetPropertyValue Method
aqObject.GetPropertyValue Method
aqObject.CallMethod Method
aqObject.IsSupported Method