Results 1 to 6 of 6

Thread: List + Populate + function + database + windows Forms

Threaded View

  1. #6
    Frenzied Member
    Join Date
    Jul 2011
    Location
    UK
    Posts
    1,335

    Re: List + Populate + function + database + windows Forms

    Someone's having a bad day (again).

    I see you are calling the function popdrawschedules from your form's Load event handler. I'm wondering if you're using a 64 bit OS since exceptions occuring in the Load event handler are unfortunately swallowed while debugging under a 64bit operating system.

    This line
    Code:
    cummList(k) = list(k) & " " & list2(k) & " " & list3(k)
    will throw an exception as you can not index an empty list (you declared it as New in the previous line).

    Try
    Code:
    cummList.add(list(k) & " " & list2(k) & " " & list3(k))
    instead.

    And while you're at it, add an As clause to your function's declaration
    Code:
     Public Function popdrawschedules() As List(Of String)
    Last edited by Inferrd; Aug 26th, 2012 at 12:26 PM.

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