IsCurrentObjectAutoInsertedAndUnmodified method (WinStudio scripts)
Applies To
IWSIDOCollection interface
Definition
Returns a Boolean value indicating whether the current object is in the automatically inserted row (the autoinsert row) in a grid and its data is unmodified.
Syntax
object.IsCurrentObjectAutoInsertedAndUnmodified( )
Part | Description |
object | Required. The name of a valid IDO collection object. |
Remarks
A return value of:
- TRUE indicates that the current object is in the autoinsert row and that its data is unmodified.
- FALSE indicates that either the current object is not in the autoinsert row, that its data has been modified, or both.
If the specified IDO collection has the focus, use this method. If the specified IDO collection might not have the focus, use the “IsObjectAutoInsertedAndUnmodified” method.
Example
Sub Main()
Dim colObject As IWSIDOCollection
colObject = ThisForm.Components(GetParameter(0)).IDOCollection
If colObject.IsCurrentObjectAutoInsertedAndUnmodified() Then
Application.ShowMessage("The object has been auto-inserted and is unmodified.")
Else
Application.ShowMessage("The object is either not an auto-insert row" _
& vbLf & "or it has been modified.")
End If
End Sub