Results 1 to 3 of 3

Thread: compile error

  1. #1

    Thread Starter
    Addicted Member
    Join Date
    Nov 2007
    Posts
    134

    compile error

    i accidently copied and pasted everything n my form and when it asked me if i wanted to create an interger i pressed yes, i deleted what i copied but now when i try and run my form...

    'Procedure decleraiton does not match description of eventor procedure having the same name'

    what can i do

  2. #2
    PowerPoster joaquim's Avatar
    Join Date
    Apr 2007
    Posts
    3,964

    Re: compile error

    Quote Originally Posted by YEAYA View Post
    i accidently copied and pasted everything n my form and when it asked me if i wanted to create an interger i pressed yes, i deleted what i copied but now when i try and run my form...

    'Procedure decleraiton does not match description of eventor procedure having the same name'

    what can i do
    send me copy of you project
    VB6 2D Sprite control

    To live is difficult, but we do it.

  3. #3
    Super Moderator si_the_geek's Avatar
    Join Date
    Jul 2002
    Location
    Bristol, UK
    Posts
    41,974

    Re: compile error

    Whichever routine it is showing you is an Event procedure (such as Form_Load, which automatically runs when the form loads).

    Due to your accidental creation of a Control Array (not an Integer), the parameters that the Event needs are different - so the first line of the Sub/Function needs to change.


    The easiest way to fix it is to copy the routines code (not the Sub/End Sub lines), then delete the entire routine... next use the drop-down lists at the top of the window to re-create the event, and paste the code into it.

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