LAST 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

version 3


LAST SUBRECORD (subtable)

ParameterTypeDescription
subtableSubtableSubtable in which to move
to the last selected subrecord

Description

LAST SUBRECORD makes the last subrecord of the current subselection of subtable the current subrecord. If the current subselection is empty, LAST SUBRECORD has no effect.

Example

The following example concatenates the first and last names in child records stored in a subtable. It copies the names into an array, called atNames. It is the same as the example for FIRST SUBRECORD except that it moves through the subrecords from last to first:

      ` Create an array to hold the names 
   ARRAY TEXT (atNames; Records in subselection ([People]Children))
   LAST SUBRECORD ([People]Children)  ` Start at the last subrecord and loop once for each child 
   For ($vlSub;1;Records in subselection ([People]Children)) 
      atNames{$vlSub}:=[People]Children First Names + " " + [People]Children Last Names
      PREVIOUS SUBRECORD ([People]Children) 
   End for

See Also

FIRST SUBRECORD, NEXT SUBRECORD, 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