SetValidatorsHaveRunSinceLoadFromSource method (WinStudio scripts)
Applies To
IWSFormComponent interface
Definition
Sets an attribute that indicates that the data in the component has been validated.
Syntax
object.SetValidatorsHaveRunSinceLoadFromSource( Boolean )
Part | Description |
object | Required. A reference to a form component object. |
Boolean | Required.
Determines whether the ValidatorsHaveBeenRun attribute is enabled:
|
Example
Sub Main()
Dim bNewValue As Boolean
Application.ShowMessage(ThisForm.Components("StringTableNameGridCol"). _
GetValidatorsHaveRunSinceLoadFromSource().ToString())
If ThisForm.Components("StringTableNameGridCol"). _
GetValidatorsHaveRunSinceLoadFromSource() Then
bNewValue = False
Else
bNewValue = True
End If
ThisForm.Components("StringTableNameGridCol"). _
SetValidatorsHaveRunSinceLoadFromSource(bNewValue)
Application.ShowMessage(ThisForm.Components("StringTableNameGridCol"). _
GetValidatorsHaveRunSinceLoadFromSource().ToString())
End Sub