|
-
Jul 11th, 2000, 07:53 PM
#1
Thread Starter
_______
Code:
'this gives run time error 13 type mismatch)
Private Sub Label1_Click(Index As Integer)
Dim Pressed As String
If frmMenu.Label1(0) Then Pressed = "1"
If frmMenu.Label1(1) Then Pressed = "2"
If frmMenu.Label1(2) Then Pressed = "3"
If frmMenu.Label1(3) Then Pressed = "4"
Select Case Press
Case "1"
MsgBox "menu 1 pressed"
Case "2"
MsgBox "menu 2 pressed"
Case "3"
MsgBox "menu 3 pressed"
Case "4"
MsgBox "menu 4 pressed"
End Select
End Sub
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Jul 11th, 2000, 07:59 PM
#2
Fanatic Member
******************************
...
Select Case Press
Case "1"
MsgBox "menu 1 pressed"
...
******************************
Should be
Select Case Pressed
-
Jul 11th, 2000, 08:01 PM
#3
Thread Starter
_______
<?>
that's what I get for watching tv and writing.
Duh...
Thanks
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
-
Jul 11th, 2000, 08:04 PM
#4
Thread Starter
_______
<?>
that was a dumb dumb but not the dumb dumb I need to
correct the situtation
"A myth is not the succession of individual images,
but an integerated meaningful entity,
reflecting a distinct aspect of the real world."
___ Adolf Jensen
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
|