SetModifiedSinceLoadOrValidation method (WinStudio scripts)
Applies To
IWSFormComponent interface
Definition
Sets a Boolean value indicating whether a specified component's value has been modified but not validated since it was loaded.
Syntax
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.
|
Example
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