Before 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


Before subselection (subtable) Boolean

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

Description

Before subselection returns True when the current subrecord pointer is before the first subrecord of subtable. Before subselection is used to check whether or not PREVIOUS SUBRECORD has moved the pointer before the first subrecord. If the current subselection is empty, Before subselection returns True.

Example

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

   PREVIOUS SUBRECORD ([People]Children)   ` Move to the previous subrecord
   If (Before subselection ([People]Children)   ` If we have gone too far...
      LAST SUBRECORD ([People]Children)   ` move to the last subrecord 
   End if

See Also

PREVIOUS 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