WinStudio
IWSFormComponent interface
Sets a Boolean value indicating whether a specified component's value has been modified but not validated since it was loaded.
object.SetModifiedSinceLoadOrValidation( Boolean )
Part |
Description |
| object | Required. A reference to a form component object. |
| Boolean | Required. Indicates whether the component's value
has been modified but not validated since it was loaded.
|
Sub Main()
'This script uses the SetModifiedSinceLoadOrValidation method and
'the GetModifiedSinceLoadOrValidation method to toggle the
'property indicating whether the value of a component
'has changed but has not been validated since it was loaded.
Dim bNewValue As Boolean
Application.ShowMessage(ThisForm.Components("StringTableNameGridCol"). _
GetModifiedSinceLoadOrValidation().ToString())
If ThisForm.Components("StringTableNameGridCol"). _
GetModifiedSinceLoadOrValidation() Then
bNewValue = False
Else
bNewValue = True
End If
ThisForm.Components("StringTableNameGridCol"). _
SetModifiedSinceLoadOrValidation(bNewValue)
Application.ShowMessage(ThisForm.Components("StringTableNameGridCol"). _
GetModifiedSinceLoadOrValidation().ToString())
End Sub