// Add a record in a data file
// (record described by programming)
Customer.LastName = "Clark"
Customer.FirstName = "Vince"
Customer.Address = "Palm lane"
Customer.City = "San Francisco"
Customer.Zip = "94102"
Customer.Country = "USA"
Customer.Add()
// Forces a write operation into Customer file
Customer.Flush()
Syntax
<Source>: Type corresponding to the specified source
Name of data file used.
Remarks
<Source>.Security and <Source>.Flush
<Source>.Security and
<Source>.Flush can both be used to force a physical write operation on disk.
However:
- <Source>.Security is used to force a write operation into the data files used during each write operation. This write operation is automatically performed by the HFSQL engine. The data files used are not closed during this write operation. The speed of the write-to-file operation is slower.
- <Source>.Flush is used to force a write operation into the data files used during the call to this function. The data files used are closed then re-opened during this write operation. The speed of the write-to-file operation is not slowed down.