RE: My VB6 project

  • From: "Ken Perry" <whistler@xxxxxxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Sun, 11 Jan 2009 19:05:15 -0500

 

 

I have always said the mark of a good starting programmer is one that can
use google or a search engine of any flavor.  It used to be harder before
google when we had to read every book we could scan before finding the
information we wanted but now the world is right there at the touch of a few
buttons.

 

Ken  

 

From: programmingblind-bounce@xxxxxxxxxxxxx
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Bryan Schulz
Sent: Sunday, January 11, 2009 5:04 PM
To: programmingblind@xxxxxxxxxxxxx
Subject: Re: My VB6 project

 

hi,

 

It surprises me how people forget google is their friend.

 

i typed; what is vb6 character array limit? and chose to read:

[VBnet DevCentre] VB6 FAQ
Promote
Remove
The size limit of an array in Microsoft Visual Basic 6.0 would actually be
limited to the size of the index for that array. The index cannot be greater
than ...
vbnet.mvps.org/dev/main/vb6faq.htm - 53k -

and hit control down arrow until i found:

Using Microsoft Visual Basic 6.0, what is the maximum number of controls
allowed on a form?

 

Visual Basic 6.0 will allow a total of 255 controls on a form.

 

 

I want to use Microsoft Visual Basic 6.0 to create programs that have very
large arrays in them, what is the maximum size of an array that Visual Basic
6.0 can handle?

 

The size limit of an array in Microsoft Visual Basic 6.0 would actually be
limited to the size of the index for that array. The index cannot be greater
than the maximum of a 32-bit value (2147483648). In reality though, the
application would run out of memory first. Windows NT only supports 4 GB of
memory
in a single process.

 

Bryan Schulz
The BEST Solution
www.best-acts.com

----- Original Message ----- 

From: Robert Montowski <mailto:r_montowski@xxxxxxxxx>  

To: programmingblind@xxxxxxxxxxxxx 

Sent: Sunday, January 11, 2009 3:41 PM

Subject: My VB6 project

 

Here is some background for this project.

I have lots of friends with an itch to do word search puzzles.

I have a program that will generate such puzzles if I give the program a
.TXT file with the words in it one per line.

I have been typing up such .TXT files with words off the top of my head.
Each .TXT file has 20 words in it.

I am running out of words to use off the top of my head.

My friends still wish me to make them these puzzles, but it is getting
harder for me to do so.

I dug around thru games I had when I was sighted.

I found a boggle game and looked thru the whole CD.

I found a .TXT file with a list of words that are considered legal words to
use in the game.

this list has one word per line and exactly 62,025 words in the list.

I wish to write a VB6 program that will parse this list and randomly pick 20
words out of the list.

It will then write a set of .TXT files that are sequentially numbered with
20 words in each .TXT file.

My first task will be to parse the list and discard any words that are less
than 3 characters in length or over 15 characters in length.

Then write this list back to the hard drive as a .TXT file with one word per
line.

I am considering reading this list back into a Character array to parse in
memory andrandomly pick 20 words from it.

after a word is selected and put into a separate character array..the first

word will be set to a sincle character..the number zero.

the second array will be then written to a sequentially numbered .TXT file.

After each .TXT file is written, the program will aks if you wish to
generate another list.

If I respond yes,

the second array will then be set to all "" characters.

Or perhaps this is called Null character?

then another 20 random words will be selected from the first array.  If an
array entry is zero it will be skippped over.

 

When I wish to stop making .TXT files of 20 words, the program will take all
entries in the first array,

and write it backto a .TXT file skipping over the entries that have a zero
in the array entry.

The original large word list will be deleted and the new shorter word list
will take on the name of the deleted file.

 

Here is my question.

What is the limit on the size of a character array tha tis allowed with VB6.

Is it a set number?  A set number depending on actual computer RAM?

or unlimited as the computer will use virtual memory to fulfill the task?

thanks for any help you folks can offer on this project of mine.

Robert

 

Other related posts: