|
-
Mar 21st, 2003, 03:04 AM
#1
Thread Starter
Hyperactive Member
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:
Private Sub lstview_GotFocus()
On Error GoTo lstview_GotFocus_Err:
focus = "lstview" ' focus is a Form variable
lstview_GotFocus_Err:
'Critical Error
giRC = CriticalMsgBox(Err.Number, Err.Description, Me.Name & "_lstview_GotFocus") ' this is a function which contains the actual msgbox
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
-
Mar 21st, 2003, 03:11 AM
#2
Thread Starter
Hyperactive Member
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
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|