FILE_ADD

FILE_ADD N,F

ADDS THE CONTENT OF FILE F TO THE SYSTEM OBJECT NUMBER N

  • Type: Command
  • Parameters: 2
  • Group: System Objects

ACTION

The command FILE_ADD N,F adds the content of file F to the system object designated by its number N.

The file is added after the last line (at the end) of the system object.

The system object is of type :MEMO, MEMO_RICH,COMBO, LIST, DLIST.

SYNTAX: FILE_ADD N,F

  • N = integer or real expression, number of system object. Must be greater than 0 and less than or equal to the allowed maximum number of system objects.
  • F = string expression, path of the file to be added in the system object.

USE

  • The command FILE_ADD is used to add a file to the content of a MEMO, MEMO_RICH, COMBO, LIST or DLIST.

ERROR

  • If number N is not a correct expression.
  • If number N exceeds the allowed maximum number of system objects.
  • If number N is not greater than 0.
  • If the system object number N does not exist.
  • If the system object number N is not of the type : MEMO, MEMO_RICH, COMBO, LIST, DLIST.
  • If F is not a correct expression.

EXAMPLE

rem create a LIST

list 1

rem fill it with the content of a file

file_load 1,"list of names.txt"

rem add it one file

file_add 1,"list of names2.txt"

SEE ALSO

MEMO

MEMO_RICH

COMBO

LIST

DLIST

ITEM_ADD

FILE_LOAD

CLEAR