Results 1 to 2 of 2

Thread: List-View Error! **SOLVED**

  1. #1

    Thread Starter
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476

    Unhappy List-View Error! **SOLVED**

    OK folks, heres another one i cant figure out:

    I have a form which contains three ListViews.

    I used the gotFocus method to perform some action. Every thing works fine, while I have the ListViews filled with data.

    But if my ListViews have no Data at all, the got focus method always creates an error:

    Heres my sourcecode:

    VB Code:
    1. Private Sub lstview_GotFocus()
    2.  
    3. On Error GoTo lstview_GotFocus_Err:
    4.  
    5. focus = "lstview" ' focus is a Form variable
    6.  
    7. lstview_GotFocus_Err:
    8.     'Critical Error
    9.     giRC = CriticalMsgBox(Err.Number, Err.Description, Me.Name & "_lstview_GotFocus") ' this is a function which contains the actual msgbox
    10.  
    11. End Sub

    Does anyone know why this function runs into the error-clause?

    Thanx in advance;


    Stephan
    Last edited by Sgt-Peppa; Mar 21st, 2003 at 03:10 AM.
    Keep Smiling - even if its hard
    Frankie Says Relax, wossname Says Yeah!
    wossname:--Currently I'm wearing a gimp suit and a parachute.
    C# - Base64 Blog

  2. #2

    Thread Starter
    Hyperactive Member Sgt-Peppa's Avatar
    Join Date
    Mar 2003
    Location
    Munich - Germany
    Posts
    476
    Sorry, should start thinking before posting, this forum seems to spoil me to much! I am sorry to have wasted your time!

    I just forgott the Exit Sub,


    Sorry again,


    Stephan
    Keep Smiling - even if its hard
    Frankie Says Relax, wossname Says Yeah!
    wossname:--Currently I'm wearing a gimp suit and a parachute.
    C# - Base64 Blog

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