End subselection

4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next

version 3


End subselection (subtable) Boolean

ParameterTypeDescription
subtableSubtableSubtable for which to test if subrecord pointer is
after the last selected subrecord
Function resultBooleanYes (TRUE) or No (FALSE)

Description

End subselection returns True when the current subrecord pointer is after the end of the current subselection of subtable. End subselection is used to check whether or not NEXT SUBRECORD has moved the pointer after the last subrecord. If the current subselection is empty, End subselection returns True.

Example

The following example is an object method for a button. When the button is clicked, the pointer moves to the next subrecord. If the pointer is after the last subrecord, it moves to the first subrecord:

   NEXT SUBRECORD ([People]Children)   ` Move to the next subrecord 
   If (End subselection ([People]Children))   ` If we have gone too far...
      FIRST SUBRECORD ([People]Children)   ` move to the first subrecord 
   End if

See Also

NEXT SUBRECORD.


4D - Documentation   Français   English   German   4th Dimension 2004, Command Theme List   4th Dimension 2004, Command Alphabetical List   4th Dimension 2004, Constant Theme List   Back   Previous   Next