Results 1 to 2 of 2

Thread: expected end statement?

  1. #1

    Thread Starter
    Junior Member
    Join Date
    Jul 2000
    Posts
    28

    Question

    Here's my code

    Sub Asgnto_Click()
    Dim i
    For i = 0 To ENotify.ListCount - 1
    If ENotify.List(i) = AsgnTo.List(AsgnTo.ListIndex) Then
    ENotify.ListIndex = AsgnTo.list
    Exit For
    End If

    Next i

    End Sub


    ..... If i put Dim i as integer I get a error stating its looking for an end stament after the i.

    .....also on the Next Statement it also want to have end statement before the i.

    What I want this code to do is read whats in what
    user list(1) and when you tab over to the next user list(2) it picks up the name that you choose in the 1 userlist

  2. #2
    _______ HeSaidJoe's Avatar
    Join Date
    Jun 1999
    Location
    Canada
    Posts
    3,946

    <?>

    is that the question..ie...
    Dim i As Integer should not create a problem, but I would personally use a better id... (intCounter)
    Code:
    Sub Asgnto_Click()
    
    Dim i As Integer
    For i = 0 To ENotify.ListCount - 1
    If ENotify.List(i) = AsgnTo.List(AsgnTo.ListIndex) Then
    ENotify.ListIndex = AsgnTo.List
    Exit For
    End If
    
    Next i
    
    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

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