WinStudio
IWSIDOCollection interface
Goes to the last object in a specified IDO collection (the bottom entry) and returns a Boolean value indicating whether the navigation was successful.
object.Last( )
Part |
Description |
object | Required. A reference to a valid IDO collection object. |
A return value of:
This method navigates objects in the collection but does not set the focus of the form to the last object.
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