Consider this:
Let's say I create a Form in B4J that has the following similar controls...
1. Add
2. Edit
3. Delete
4. Confirm
5. Cancel
6. Save
7. Close
For each of the above buttons on the form the same basic steps are performed to manipulate a record in a particular database table. The same can be said for Form actions like updating a TreeView or refreshing a record.
So with this in mind in B4J we have two types of classes: Code Module/Class Module.
Can I use a Class Module to store my code that will reduce the size of given Forms?
Or would I just need to re-create a different Form with the same controls and actions I need?
My end goal is to keep the size of an application to a minimum while providing me with maximum re-usability.
Let's say I create a Form in B4J that has the following similar controls...
1. Add
2. Edit
3. Delete
4. Confirm
5. Cancel
6. Save
7. Close
For each of the above buttons on the form the same basic steps are performed to manipulate a record in a particular database table. The same can be said for Form actions like updating a TreeView or refreshing a record.
So with this in mind in B4J we have two types of classes: Code Module/Class Module.
Can I use a Class Module to store my code that will reduce the size of given Forms?
Or would I just need to re-create a different Form with the same controls and actions I need?
My end goal is to keep the size of an application to a minimum while providing me with maximum re-usability.