DISPLAY RECORD

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


DISPLAY RECORD {(table)}

ParameterTypeDescription
tableTableTable from which to display the current record, or
Default table, if omitted

Description

The DISPLAY RECORD command displays the current record of table, using the current input form. The record is displayed only until an event redraws the window. Such an event might be the execution of an ADD RECORD command, returning to an input form, or returning to the menu bar. DISPLAY RECORD does nothing if there is no current record.

DISPLAY RECORD is often used to display custom progress messages. It can also be used to generate a free-running slide show.

If a form method exists, an On Load event will be generated.

WARNING: Do not call DISPLAY RECORD from within a Web connection process, because the command will be executed on the 4th Dimension Web server machine and not on the Web browser client machine.

Example

The following example displays a series of records as a slide show:

   ALL RECORDS([Demo])  ` Select all of the records 
   INPUT FORM ([Demo]; "Display")  ` Set the form to use for display 
   For ($vlRecord;1;Records in selection([Demo]))  ` Loop through all of the records 
      DISPLAY RECORD([Demo])  ` Display a record 
      DELAY PROCESS (Current process; 180)  ` Pause for 3 seconds 
      NEXT RECORD([Demo])  ` Move to the next record 
   End for

See Also

MESSAGE.


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