Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- RaSQL/B 6.1a for Clipper - <b>n_xupdate()</b> http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
N_XUPDATE()
Write data into table, overwriting current record

Syntax
N_XUPDATE([<lWriteOnly>])

RDD
Use COMMIT or DBCOMMITALL()

Argument
<lWriteOnly> by default, is .F. (If the argument is omitted, .F. is 
assumed.) In this case, when Btrieve updates a record, it will write the 
record and then read it back.
If you specify .T., then RaSQL/B will not read the record back after writing 
it. This will speed the operation somewhat and is useful at the end of a 
transaction when you do not expect to access the record again. To access the 
record for another transaction, you will need to perform one of the 
retrieval operations - N_XSEEK(), N_XGOTO(), N_XSKIP().

Returns
False on failure. See N_XERROR().

Remarks
Data is written from the current record buffer, which is affected by 
N_XREPLACE(), N_XGATHER() or N_XCLRBUF().

Example
* Store new data
N_XREPLACE('Last_Name', 'Byrne')
N_XREPLACE('First_Name', 'David')
* Replace data in table
N_XUPDATE()


See Also: N_XINSERT()

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson