Hello!

I am currently workin gon a project that lets the user enter spanish words, and it lists them in a listbox and then if the user clicks on the words it will tell them the definition, And i'm having troubles combining the 2 array's, see what i did was first made the program,
with just a dynamic array, When the user clicks on the cmd button,
it will ask: How many words do u wish to enter? that sets up the dimensions, and then i use a for next loop to loop threw all of them and adds it to the listbox, and it works fine but who needs that?
so i am trying to add a defintion thing too! here's the code i have so far:
Code:
Dim SpanishWords()
Option Explicit

Private Sub cmdClose_Click()
Unload Form1

End Sub

Private Sub cmdEnter_Click()
Dim WordCount As Integer        'gets number of dimensions
Dim Words As String                 'gets user to enter words to list box
Dim i As Integer                          'counter
Dim Def As String                         'inputbox that prompts user for def of word
Dim WordCount2 As Integer            'Makes 2 dimensional array for def also

    WordCount = InputBox("Type in the number of words you wish to enter to.", "Spanish Words")
        ReDim SpanishWords(1 To WordCount)
    WordCount2 = InputBox("Enter the how many defintions you will be adding to words.")
    
    ReDim Preserve SpanishWords(1 To WordCount, 1 To WordCount2)
    
            For i = 1 To WordCount
                Words = InputBox("Enter the " & WordCount & " new vocabulary words.")
                Def = InputBox("Enter Defintion of spanish word")
                
                SpanishWords(i) = Words
                List1.AddItem (Words)
            Next i
End Sub

Private Sub List1_Click()
    Select Case List1.ListIndex
        
End Sub
see i don't even know if i was suppose to use an array or
not, but i just guessed that, so can someone please tell me what im doing wrong? what i know is wrong is that i
wanted it to work out like the first, after the user enters
the word a inputbox comes up and asks the user for def of the word they just enetered, and it goes on to the next and
next. but i don't know what to do so i can put it in the array as well, so when the user clicks the word in teh list
box a msg box or anotehr form comes up with the def of the word. sorry if i'm boring you but this is all the better i
can explain it Thanks for listening

[Edited by struntz on 08-01-2000 at 12:36 AM]