Marc,
[quote:2embsi9t]The code for changing the oDbfklant:tel_nr and oDbfklant:fax_nr could be changed into a new method from the save() [/quote:2embsi9t]
I'm not sure what you meant, but you should make a new Save() method in the TKlants class and add that code to the new save method.
[code=fw:2embsi9t][/code:2embsi9t]
Now you just do:
oKlants:save()
I suggest opening the Dial database INSIDE the TKlants class. And closing it too, of course. This encapsulates the database--you don't have to rely on the database being open before saving the oKlants record. Whew, you might have to read that twice--it is a new concept; a database class inside a database class.
James
↧