|
-
Apr 25th, 2002, 09:11 AM
#1
Thread Starter
New Member
Easy combo box question (probably)
I am trying to loop through a file and add the contents of one field from each record to a combo box. I am currently using the following code: -
Do While Not unitselarray(Index).unit_name = ""
Text8.Text = unitselarray(Index).unit_name
Combo2.AddItem Text8.Text
Loop
but this keeps giving me error messages. Could someone please help?
Thanks,
Paul
-
Apr 25th, 2002, 09:16 AM
#2
Bouncy Member
well the first problem i can see is that Index never changes in the loop at all, basically its a continuous loop.
also Index has not been initiated at all, perhaps it doesnt exist!
what's the error message and which line of code???
-
Apr 25th, 2002, 09:20 AM
#3
Thread Starter
New Member
duh! I completely forgot about incrementing index!
The error message is "Invalid procedure call or argument" on the line Combo2.AddItem Text8.Text
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|