CuriousGeorge
Registered User.
- Local time
- Today, 03:36
- Joined
- Feb 18, 2011
- Messages
- 131
Hi,
Im learning vb in order to be able to add some functionality to my db and forms.
I got experience from java and c and im trying to figure out how you structure and organize ur code in vba and what the similarities are.
When programming in e.g. java you have ur classes and methods where u add ur functions and whatever u wanna do. And then u have ur main function from where u call all the methods etc.
In VB, what ive understood, u got models and all these commands which been added to various buttons on forms reports etc.
Can these models be seen as the corresponding classes in java where u store all ur functions etc?
When looking in VB from some already made database u can see all the Class Objects where commands have been added to forms etc. In addition u also have ur modules below. How do these work together? When do i need a module?
If i have a form performing different tasks i.e a collection of class objects - why would i for example need a module?
Cheers
Im learning vb in order to be able to add some functionality to my db and forms.
I got experience from java and c and im trying to figure out how you structure and organize ur code in vba and what the similarities are.
When programming in e.g. java you have ur classes and methods where u add ur functions and whatever u wanna do. And then u have ur main function from where u call all the methods etc.
In VB, what ive understood, u got models and all these commands which been added to various buttons on forms reports etc.
Can these models be seen as the corresponding classes in java where u store all ur functions etc?
When looking in VB from some already made database u can see all the Class Objects where commands have been added to forms etc. In addition u also have ur modules below. How do these work together? When do i need a module?
If i have a form performing different tasks i.e a collection of class objects - why would i for example need a module?
Cheers