|
-
Aug 16th, 2001, 10:09 PM
#1
Thread Starter
New Member
beachbum (still problems)
Hi again Beachbum, Thanx for correcting my obvious mistakes.I need to pay more attention to what I'm doing !! I'm still having a problem running the program. It pertains to the following code.
[ vbcode ]
Private Sub Command2_Click()
list1.Clear 'keep getting "variable not defined"
list2.Clear 'message for these 2 lines of code
For loopcounter = 0 To numberofstudents
list2.AddItem scorearray(loopcounter)
list2.ItemData(list2.NewIndex) = loopcounter
Next
For loopcounter = numberofstudents To 0 Step -1
orderposition = list2.ItemData(loopcounter)
list1.AddItem namearray(orderposition) & vbTab & scorearray(orderposition)
Next
End Sub
[/Highlight]
Am I posting my code correctly now? I tried to highlight my comments without any luck. I'm a newbie/wannabe..lol.It's awful nice of you to help people..Have a great evening.
-
Aug 16th, 2001, 10:33 PM
#2
Do you have 2 listbox controls named list1 and list2 respectively?
-
Aug 17th, 2001, 12:13 AM
#3
Hey, pickett!
I'm over here in Rochester. Couldn't help but Notice Your a Buffalo Neighbor.
Anyways, Don't know what your Previous prob is, that you infer to Beachbum, but as to the code, instead of [ vbcode]...[ /vbcode]
heh, this is hard, can't type it in, but, yea, don't use vb in those field codes.
So, instead of [ vbcode]...[/ vbcode], replace " vb" with "".
-Lou
-
Aug 17th, 2001, 03:37 AM
#4
PowerPoster
Hi again pickett
I think in original post i said that u need two listboxes on ur form. List1 had its Sorted property set to False and List2 had its Sorted property set to True.
Use the Toolbox to add ur listboxes and command buttons. left side of Pic shows listbox highlighted.
Then open the properties window and set the Sorted property as per right side of Pic.
Regards
Stuart
PS u can copy code from here and paste into ur application. For vbcoding to appear properly type [*vbcode] before ur code but remove the asterisk. I cant show u the actual word here becos it will automatically change to vb coding. To finish ur code type [*/vbcode] again without the asterisk.
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
|