Inserts or updates a row in the table. If the row does not exist, a new one will be created in the table. It the row does exist, it will be overwritten.
Write expression on | to filevar, key then | else statements
The Write statement has the following parameters.
|Expression||Evaluates to the row that is to be written to the table.|
|Filevar||Refers to a table variable that has been opened in a previous Open statement.|
|Key||Specifies the key of the record to be written.|
|Then||The statement(s) following Then are executed if the record is written successfully.|
|Else||The statement(s) following Else are executed if the row cannot be written. The Status() function indicates the severity of the error, and the system variable @FILE_ERROR contains detail about the nature of the error.|