I've been doing this for some time now but I still consider myself a 'newbie' lol
ok, just when I thought I had the OOP thing down, I am lost again!!
when you create a new variable/instance of a class, when do you know to use the NEW keyword? for example:
VB Code:
dim button as NEW buttonVB Code:
dim button as buttonVB Code:
dim dg as datagridVB Code:
dim dg as NEW datagrid
And, when you place a component/control from the toolbox onto the form, is the IDE secretly doing those declarations for you behind the scenes?
Then, there are times when you go ahead and put the '=' at the end and set them to something...When do you know the appropriate syntax?
I've apparently forgotten some basics along the waycan anyone enlighten me?
ashamed---->![]()





Reply With Quote