Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How much memory does a Control Index use

Status
Not open for further replies.

rjmccorkle

Programmer
Aug 26, 2000
55
US
Does anyone know if a control index with a high number uses more resources than one with a low number when there are the same number of items in the array?
I'm using VB6. I have an array of 20 text boxes. The first 10 I set the indices to 0-9 and the next 10 to 101-110. I use an If/Then to test the index; if it is less than 100 it does one thing; if greater than 100 it does something else.
Does VB set aside resources for 20 things or for 110 things?
Thanks for any help.
Bob
104122.315@compuserve.com [sig][/sig]
 
I dont know about the resource issue, but it seems that you could do the same thing by useing the tag property to tell the two sets of TextBoxes apart, The only problem I see is if you want to iterate through all the TextBoxes useing your method your going to have to do extra work.

Hope this helps
Collin [sig][/sig]
 
Collin,
I'm already using the Tag property to track the default ID for the boxes. So far I haven't run out of memory or anything like that but I'm never sure what computer will be running the program: we have some 486's with 16mb & Win95 and they barely do ANYTHING as it is. Thanks for the try.
Bob
104122.315@compuserve.com [sig][/sig]
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top