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 strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Maximum Number of Forms

Status
Not open for further replies.

Deleco

Programmer
Feb 25, 2002
109
GB
Is there a maximum number of forms that you can have in a VB project and if so how many?????

I need to know as i am working on a project with lots of forms, and need to know if i am going to hit any problems if forms keep getting added.

Thanks for any help in advance
Deleco. Deleco
 
I thinks it is no problem,but it depends on memory.Also you should try to use methodes thet less forms in your project. Behnam2204@yahoo.com
BehnamPro
 
Thanks....
But i was wondering more if there was any official microsoft view on the amount of forms in a project or a recommended maximum. I have looked in the microsoft KB but didn't find any info, but i never was any good at searching. :)

I have reviewed all of the forms in the project and they are all needed. Deleco
 
Look up "project limitations" in MSDN under VB6


Project Limitations


A single project can contain up to 32,000 "identifiers" (any nonreserved keyword), which include, but are not limited to, forms, controls, modules, variables, constants, procedures, functions, and objects. Note that the actual number of identifiers is limited to available memory.

Variable names in Visual Basic can be no longer than 255 characters, and the names of forms, controls, modules, and classes cannot be longer than 40 characters. Visual Basic imposes no limit on the actual number of distinct objects in a project.



There are also limits on number of controls an a form etc. (which can usually be bypassed with Control arrays etc.) Let me know if this helps
________________________________________________________________
If you are worried about how to post, please check out FAQ222-2244 first

'There are 10 kinds of people in the world: those who understand binary, and those who don't.'
 
Thanks, that helps.... Buts it is just like microsoft to give a Hazy answer which does not really answer a question.

I think that i will be alright for the moment, and i will just have to keep an eye on memory usage.

Thanks for all the help
Deleco Deleco
 
Answer seemed clear to me.
Your limit is 32000 as long as you don't have any other unique identifiers.

So basically there is no limit as if you actually did have 32000 forms then you should be shot in the head. Thus its a limit on memory both physical and virtual.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top