This is the legacy 4D documentation web site. Documentations are progressively being moved to developer.4d.com

Home

 
4D v20 R7
FORM GET ENTRY ORDER

FORM GET ENTRY ORDER 


 

FORM GET ENTRY ORDER ( objectNames {; pageNumber | *} ) 
Parameter Type   Description
objectNames  Text array in Object names sorted by entry order
pageNumber | *  Longint, Operator in Number of the page for which to get the defined entry order (current page if omitted), or
* to get the actual entry order of the current page

The FORM GET ENTRY ORDER command returns in objectNames the sorted names of objects that define the form entry order.

  • If you pass the * as parameter, FORM GET ENTRY ORDER returns the actual entry order of the current page, i.e. the objectNames array only contains valid object names (for more information on valid objects, please refer to the FORM SET ENTRY ORDER command description). The actual form entry order can be:
    • the default form entry order, based upon object layering,
    • or the form editor's entry order (see Modifying data entry order), if it has been used,
    • or the entry order set by a call to the FORM SET ENTRY ORDER command in the current process, if it has been used.

    The actual entry order always includes objects from page 0 and from inherited form(s).

Note: The entry order within a subform is not returned when this command is applied to the parent form.

Example  

You want to exclude some objects from the current entry order:

 ARRAY TEXT($arrTabOrderObject;0)
 C_LONGINT($vElem)
 
 FORM GET ENTRY ORDER($arrTabOrderObject;*) //get the actual entry order
 Repeat
    $vElem:=Find in array($arrTabOrderObject;"vTax@")
    If($vElem>0) //exclude objects whose name starts with "vTax" from data entry order
       DELETE FROM ARRAY($arrTabOrderObject;$vElem)
    End if
 Until($vElem<0)
 FORM SET ENTRY ORDER($arrTabOrderObject//apply the new entry order



See also 

FORM SET ENTRY ORDER

 
PROPERTIES 

Product: 4D
Theme: Forms
Number: 1469

 
PAGE CONTENTS 
 
HISTORY 

Created: 4D v16 R4

 
ARTICLE USAGE

4D Language Reference ( 4D v20 R7)