Skip to content

Read - DfBaseEdit

Imports information from an external source to the Edit object's buffer

Type: Procedure

Parameters

Parameter Type Description
sFileName String The name of the file to be read (optional)

Syntax

Procedure Read String sFileName

Call Example

Send Read sFileName

Description

The Read message imports information from an external source to the object's buffer. If sFileName is omitted, then the File_Name property of the object is used. The external file is read until the end of file is reached. The DataFlex sequential I/O system is used, so any valid file name and sequential modifier may be used. New line and tab are treated specially by the system; all other characters (that are greater than space) are inserted into the buffer.

send Read of oEdit1 "txt_file.txt"

set File_Name of oEdit1 to "note.txt"
send Read of oEdit1