Solved

Type ... End Type 64K Limit

Posted on 1998-09-03
4
170 Views
Last Modified: 2010-04-30
Is there any way to get around the 64K limit with Type...End Type?  I have a huge list of strings defined and would like to avoid breaking it down into a billion type statements if possible.  Code will help.
0
Comment
Question by:dokken
  • 2
  • 2
4 Comments
 
LVL 1

Expert Comment

by:lawnranger
ID: 1432829
Make the strings variable length (they only take 4 bytes) and then you can have about 16,000 strings. Is that enough?
0
 

Author Comment

by:dokken
ID: 1432830
16,000 would be more than enough.  I actually just tried removing the fixed lengths.  So far no problems, but I'm still adding all the data.  So, no matter how big each string is I shouldn't run into any memory errors right?
0
 
LVL 1

Accepted Solution

by:
lawnranger earned 30 total points
ID: 1432831
If its VB5 the string length limit is huge 2^31 chars I think. Does thie get the points? =:)
0
 

Author Comment

by:dokken
ID: 1432832
Good, I can avoid a million type...end type's :)
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This article describes some techniques which will make your VBA or Visual Basic Classic code easier to understand and maintain, whether by you, your replacement, or another Experts-Exchange expert.
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

18 Experts available now in Live!

Get 1:1 Help Now