José,
I forgot to provide a simple database class example. This assumes you are using CDX's and you have all the indexes in one file which is auto-opening when the database is opened (the RDD's default).
[code=fw:2jnvla15][/code:2jnvla15]
Then you can just do this to create a new customer database object:
[code=fw:2jnvla15][/code:2jnvla15]
I use the plural form "oCustomers" for databases because I use "oCustomer" for a single customer object which is independent from the database object. I expect you will be wanting to do the same thing once you understand the advantages of using these two types of objects. For example:
[code=fw:2jnvla15][/code:2jnvla15]
Note that you can pass objects to functions or other objects without dealing with any workareas or aliases. Very useful.
Regards,
James
↧