WinStudio
Sets the internal string representation of an object to a specified value, which is passed as the parameter.
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. |
The parameter being passed must resolve to an internal string representation.
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 Sug