Results 1 to 4 of 4

Thread: beachbum (still problems)

  1. #1

    Thread Starter
    New Member
    Join Date
    Mar 2001
    Location
    Buffalo,NY
    Posts
    6

    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.

  2. #2
    Your Ad Here! Edneeis's Avatar
    Join Date
    Feb 2000
    Location
    Moreno Valley, CA (SoCal)
    Posts
    7,339
    Do you have 2 listbox controls named list1 and list2 respectively?

  3. #3
    pathfinder NotLKH's Avatar
    Join Date
    Apr 2001
    Posts
    2,397
    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

  4. #4
    PowerPoster beachbum's Avatar
    Join Date
    Jul 2001
    Location
    Wollongong, NSW, Australia
    Posts
    2,274
    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.
    Stuart Laidlaw
    Brightspark Financial Software
    http://www.gstsmartbook.com

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width