F-READ
Reads a record into a file buffer.
Synopsis
F-READ fb itemId F-R fb itemId
Arguments
fb | An integer specifying the file buffer associated with the file. Available values are 1 through 9. |
itemId | The item ID of the item to be read into the file buffer. itemId can be an integer, or a reference to a buffer or a select list that contains the item ID. |
Description
The F-READ PROC command reads a specified item from a file into the file buffer. The file must have been opened using the F-OPEN command, which assigned it a numbered fb file buffer.
F-READ is a PQN command.
Examples
The following examples show the F-READ command. The first reads a literal value, the second reads a reference to a buffer containing the value.
PQN
F-OPEN 7 VOC
F-READ 7 MyData
PQN
F-OPEN 7 VOC
MV %2 "MyData"
F-READ 7 %2