4D v14.3

Is record loaded

Home

 
4D v14.3
Is record loaded

Is record loaded 


 

Is record loaded {( aTable )} -> Function result 
Parameter Type   Description
aTable  Table in Table of the record to examine or Default table if this parameter is omitted
Function result  Boolean in True if the record is loaded Otherwise False

The Is record loaded command returns True if aTable’s current record is loaded in the current process.

Example  

Instead of using the “Next record” or “Previous record” automatic actions, you can write object methods for these buttons to improve their operation. The “Next” button will display the beginning of the selection if the user is at the end of the selection and the “Previous” button will show the end of the selection when the user is at the beginning of the selection.

  ` Object method of the “Previous” button (without an automatic action)
 If(Form event=On Clicked)
    PREVIOUS RECORD([Group])
    If(Not(Is record loaded([Group])))
       GOTO SELECTED RECORD([Group];Records in selection([Group]))
  `Go to the last record in the selection
    End if
 End if
 
  ` Object method of the “Next” button (without an automatic action)
 If(Form event=On Clicked)
    NEXT RECORD([Group])
    If(Not(Is record loaded([Group])))
       GOTO SELECTED RECORD([Groups];1)
  `Go to the first record in the selection
    End if
 End if

 
PROPERTIES 

Product: 4D
Theme: Records
Number: 669

 
HISTORY 

Created: 4D v6.5

 
ARTICLE USAGE

4D Language Reference ( 4D v12.4)
4D Language Reference ( 4D v11 SQL Release 6)
4D Language Reference ( 4D v14 R3)
4D Language Reference ( 4D v14 R2)
4D Language Reference ( 4D v13.5)
4D Language Reference ( 4D v14.3)
4D Language Reference ( 4D v14 R4)