[Example] Updating in a gridcontrol with macros
Posted: Thu Dec 16, 2010 5:34 pm
Hello
This is an example how to change data in your database. It use macros and I suppose you also use the filter of the form where the grid control is.
There are two methods how it can work
a) Works on all records of the grid control.
b) Works only on the selected records of the gridcontrol.
For both methods:
a) The table must editable
b) The filter limits the records who will be changed
This method of updating your database is not the most preferred method. I think this is good for when you need to change some records. When you have to change a great number of records then I think SQL is better.
I have two examples:
a) for updating a grid control.
b) for copy values in one gridcontrol to an other gridcontrol.
Before you use in for a real production check this out. I did only test it a little
Romke
This is an example how to change data in your database. It use macros and I suppose you also use the filter of the form where the grid control is.
There are two methods how it can work
a) Works on all records of the grid control.
b) Works only on the selected records of the gridcontrol.
For both methods:
a) The table must editable
b) The filter limits the records who will be changed
This method of updating your database is not the most preferred method. I think this is good for when you need to change some records. When you have to change a great number of records then I think SQL is better.
I have two examples:
a) for updating a grid control.
b) for copy values in one gridcontrol to an other gridcontrol.
Before you use in for a real production check this out. I did only test it a little
Romke