Originally posted by Fred Harris
View Post
From the code I've written so far what seems to be the case is that many relatively small arrays holding all these goodies are what we need....All that is really needed is a small array to hold all the properties of a text box (50).
Question: objects and their properties/methods/events are OK if the objects are standard ones, but how do you deal with user-defined objects, etc. Presumably you have to dig the properties etc out of the code somehow.
It would be possible to have one large property array ...but why have to scan through an array holding 500 elements when you...know for absolute certin that you are dealing ...with a textbox and its 50 properties?
In terms of my early goal of first determining what general type of statement a program line is, i.e., assignment statement, use of reserved word, user function call, object method call -- well, "How many catagories do we really need?"
Should statements starting with a VB reserved word (verb?) be seperated out from Object Method calls? If there isn't an assignment statement involved, all these are rather similiar in terms of handling...
lstVBConverterMembers.AddItem "Stan Helton", 0
Erase vbObj
Call frmName_btnClose_Click()
The 1st will resolve ultimately (for me the Sdk'er) to a SendMessage() call on the listbox to add an item.
The second is a procedure call that VB itself sets in motion. The last is an ordinary procedure call.
As things stand now the 1st and 3rd will be identified and found in the Symbol Table. The middle one in a list of reserved words.
lstVBConverterMembers.AddItem "Stan Helton", 0
Erase vbObj
Call frmName_btnClose_Click()
The 1st will resolve ultimately (for me the Sdk'er) to a SendMessage() call on the listbox to add an item.
The second is a procedure call that VB itself sets in motion. The last is an ordinary procedure call.
As things stand now the 1st and 3rd will be identified and found in the Symbol Table. The middle one in a list of reserved words.
Comment