ValueInternal property (WinStudio scripts)
Applies To
- IWSApplication interface
- IWSForm interface
- IWSFormComponent interface
- IWSIDOProperty interface
- IWSVariable interface
- IGlobalScriptParm interface
Definition
Returns the value of a form-level or global variable, or the internal string representation of an object. Read-only.
Syntax
object.Value
| Part | Description | 
| object | Required. 
 | 
Remarks
The return value is a string containing the value of the variable, component, property, or parameter.
With the exception of how date and numeric formats are presented, this property is the same as the Value property. For instance, with the Value property, dates are presented using the current locale display format. With this property, the date is presented using the Windows client internal date format.
Example
Sub Main()
   Dim strFormPersVar As String
   Dim strFormTempVar As String
   Dim strGlobalPersVar As String
   'Persistent form-level variable.
   strFormPersVar = ThisForm.Variables("InitialCommand").ValueInternal
   Application.ShowMessage("The value of the InitialCommand variable is: " _
      & strFormPersVar)
   'This Set command creates a temporary variable on the current form.
   ThisForm.Variables("NewTempVar").Value = "TestValue"
   strFormTempVar = ThisForm.Variables("NewTempVar").ValueInternal
   Application.ShowMessage("Temporary variable value = " & _
      ThisForm.Variables("NewTempVar").ValueInternal)
   'Persistent global variable.
   strGlobalPersVar = Application.Variables("AccessAs").ValueInternal
   Application.ShowMessage("The value of the AccessAs variable is: " _
      & strGlobalPersVar)
End Sub