Skip to content

Filenumber Predefined Variable

Obsolete

This variable is replaced by the DF_FILE_NUMBER Database API attribute.

Purpose

To store the file-list number of a database file to be addressed indirectly.

Syntax

filenumber

What It Does

After any of the following commands is executed, filenumber contains the file-list number of the database file addressed by the command:

  • entry_item
  • make_file

Database files can be addressed indirectly from procedures and functions by setting filenumber to the file-list number of the desired file (or using its current value) and addressing the command(s) to indirect_file.recnum. If a command(s) need to address specific fields in the file, it can be made to do so with the same keyword by pre-setting the value of the Predefined Variable fieldindex to the number of the desired field.

Notes

  • filenumber is an Integer variable that does not need to be declared in programs.
  • To address a particular numbered file with a filelist or filelist pathname command, you may move a desired value directly to filenumber.