Here are two sample single-item objects reflecting real-world objects. None are database objects. They all inherit from TRecord, not TData. However, they may use an internal data table object to lookup the data that they contain and/or save it.
[code=fw:1h7vil2r][/code:1h7vil2r]
I'm sure you can figure out the code without even any comments.
Here is the method to finalize an invoice object. It updates two fields, one in the invoice object and one in the customer object. Simple--only four lines of code! Note that the invoice object contains it's own customer object.
[code=fw:1h7vil2r][/code:1h7vil2r]
This is just an example of the types of things you can do with single item objects.
James
↧