Is record loaded

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next

version 6.5


Is record loaded {(aTable)} Boolean

ParameterTypeDescription
aTableTableTable of the record to examine or
Default table if this parameter is omitted
Function resultBooleanTrue if the record is loaded
Otherwise False

Description

The Is record loaded command returns True if the 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

4D - Documentation   Français   English   German   Spanish   4D v11 SQL, Command Theme List   4D v11 SQL, Command Alphabetical List   4D v11 SQL, Constant Theme List   Back   Previous   Next