Results 1 to 4 of 4

Thread: <?> Type Error...Array of Labels

  1. #1

    Thread Starter
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946
    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

  2. #2
    Fanatic Member Psyrus's Avatar
    Join Date
    Jul 2000
    Location
    NJ
    Posts
    602
    ******************************

    ...

    Select Case Press
    Case "1"
    MsgBox "menu 1 pressed"

    ...

    ******************************

    Should be

    Select Case Pressed



  3. #3

    Thread Starter
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    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

  4. #4

    Thread Starter
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    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
  •  



Click Here to Expand Forum to Full Width