Last method (WinStudio scripts)
Applies To
IWSIDOCollection interface
Definition
Goes to the last object in a specified IDO collection (the bottom entry) and returns a Boolean value indicating whether the navigation was successful.
Syntax
object.Last( )
Part | Description |
object | Required. A reference to a valid IDO collection object. |
Remarks
A return value of:
- TRUE indicates that the collection was navigated to the last object.
- FALSE indicates that the collection was not navigated to the last object.
This method navigates objects in the collection but does not set the focus of the form to the last object.
Example
Sub Main() Dim bIsLast As Boolean Dim strOldEntityCode As String bIsLast = ThisForm.PrimaryIDOCollection.Last() If bIsLast Then strOldEntityCode = ThisForm.PrimaryIDOCollection.GetCurrentObjectProperty("EntityCode") End If End Sub