 |
» |
|
|
 |
Writes data from a BASIC program to a KSAM file. CALL BKWRITE (filenum,status,parameterlist)
|
A call to procedure BKWRITE writes a record to a KSAM file from a BASIC program. This call provides the only way to create a KSAM record from a BASIC program. The file must have been opened
with an access mode that allows writing. If access is shared, the file also must be opened for dynamic locking (lock = 1), and the file locked with BKLOCK before any records are written. Parameters |  |
- filenum
A numeric variable containing the file number value that identifies the file. This number was returned by the last call to BKOPEN. It should not be altered unless the file is closed by a successful call to BKCLOSE. (Required parameter) - status
A four-character string variable to which is returned a code that indicates whether or not the call to BKWRITE was successful and if not, why not. The first character is set to zero when the call succeeds, to another value if not. (Required parameter) - parameterlist
A list of variables or constants, separated by commas, that contain the data to be written to the file as a record. The total length of the record contents is derived from the total number, the type, and the length in characters of the items in parameterlist. The parameterlist must contain a value for each location defined as a key location in the record. (Required parameter)
|