Hello,
I once knew how to do this, but I forgot and now I need it again :/
OK, here goes...
I have a form containing 3 frames. Each frame contains a number of text-fields and a button. The textfields are (should be) disabled and the button is marked 'Edit'.
When you click the button, the caption becomes 'SAVE' and writes the changed data to the DB (this works). The thing that does not work is enabling all the textfields in the frame upon clicking the 'EDIT'-button and disabling the fields again when the 'SAVE'-button is clicked.
I can do this if I define all required procedures PER frame, but since I have to do nearly the same for 3 different frames, it is clear that I want to call a function in order to do this.
Anybody got an idea how I can address ALL objects contained in a frame in VB6?
I once knew how to do this, but I forgot and now I need it again :/
OK, here goes...
I have a form containing 3 frames. Each frame contains a number of text-fields and a button. The textfields are (should be) disabled and the button is marked 'Edit'.
When you click the button, the caption becomes 'SAVE' and writes the changed data to the DB (this works). The thing that does not work is enabling all the textfields in the frame upon clicking the 'EDIT'-button and disabling the fields again when the 'SAVE'-button is clicked.
I can do this if I define all required procedures PER frame, but since I have to do nearly the same for 3 different frames, it is clear that I want to call a function in order to do this.
Anybody got an idea how I can address ALL objects contained in a frame in VB6?