tiredofit
Well-known Member
- Joined
- Apr 11, 2013
- Messages
- 1,913
- Office Version
- 365
- 2019
- Platform
- Windows
I have come to the conclusion there appears to be two distinct styles of programming in VBA.
1. Those with no prior experience of programming.
2. Others who are already conversant with Java, C#, etc.
I have seen VBA code such as:
and then I start to panic as I believe this has been written by someone who has a formal training in programming because Burger and McDonalds (in my humble opinion) are classes.
Most VBA books focus on getting programs written without delving too deeply into classes, collections, etc.
Can someone please post some examples of:
I have tried reading Ramblings by Bruce McPherson:
but find it difficult to understand everything, though I have grasped the basic concepts of classes, instatiation, etc.
Thanks
[/FONT]
1. Those with no prior experience of programming.
2. Others who are already conversant with Java, C#, etc.
I have seen VBA code such as:
Rich (BB code):
Function MyFunc (somearg As Burger) As McDonalds
and then I start to panic as I believe this has been written by someone who has a formal training in programming because Burger and McDonalds (in my humble opinion) are classes.
Most VBA books focus on getting programs written without delving too deeply into classes, collections, etc.
Can someone please post some examples of:
Rich (BB code):
Dim MyObj As Object 'why might they create their own object (and I don't mean just for late binding purposes).
Classes and hierarchies, such as parent / child relationships
I have tried reading Ramblings by Bruce McPherson:
Rich (BB code):
[FONT=Verdana,Arial,Tahoma,Calibri,Geneva,sans-serif]http://ramblings.mcpher.com/
but find it difficult to understand everything, though I have grasped the basic concepts of classes, instatiation, etc.
Thanks
[/FONT]