My VB6 project

  • From: "Robert Montowski" <r_montowski@xxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Sun, 11 Jan 2009 16:41:18 -0500

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: