TextInternal property (WinStudio scripts)

Applies To

IWSFormComponent interface

Definition

Sets or returns a string containing the internal value of an editable component.

If the component is bound to a property, then setting its internal value updates the property, marks the property modified, and notifies other dependents on the property (such as other components bound to it) to refresh.

Set Syntax

object.TextInternal = string

Part Description
object Required. A reference to an editable component object.
string Required. The new value to be assigned to the component.

Get Syntax

object.TextInternal

  Part   Description
object Required. A reference to an editable component object.

Remarks

WinStudio stores the values of editable components as character strings.

In a tree component, this property returns the value of the first property in the current node.

With the exception of how date and numeric formats are presented, this property is the same as the Text property. For instance, with the Text 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 oComponent As IWSFormComponent
   Dim value1 As String
   Dim value2 As String
         
   'Show current field values: 
   oComponent = ThisForm.Components("FirstGridCol")
   value1 = oComponent.TextInternal
   value2 = ThisForm.Components("SecondGridCol").TextInternal
   Application.ShowMessage("First column value: " _
      & value1 & vbLf & "Second column value: " _
      & value2)
   
   'Swap values and display confirmation message:
   oComponent.TextInternal = value2
   ThisForm.Components("SecondGridCol").TextInternal = value1
   Application.ShowMessage("The text should now be swapped!")
End Sub