SetValue method (WinStudio scripts)
Applies To
- IWSFormComponent interface
- IWSIDOProperty interface
- IWSVariable interface
Definition
Sets the internal string representation of an object to a specified value, which is passed as the parameter.
Syntax
object.SetValue( value )
Part | Description |
object | Required. A reference to the object for which the value is being set. |
value | Required. The value to which the object is to be set. |
Remarks
The parameter being passed must resolve to an internal string representation.
Example
Sub Main() Dim myDateTime As String ThisForm.Variables("myDateTimeVar").SetValue(DateTime.Now) myDateTime = ThisForm.Variables("myDateTimeVar").Value Application.ShowMessage("The current date and time are " & _ myDateTime & ".") End Sub