Wrox Programmer Forums
Go Back   Wrox Programmer Forums > Visual Basic > VB 6 Visual Basic 6 > Beginning VB 6
|
Beginning VB 6 For coders who are new to Visual Basic, working in VB version 6 (not .NET).
Welcome to the p2p.wrox.com Forums.

You are currently viewing the Beginning VB 6 section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old January 19th, 2004, 03:41 PM
Authorized User
 
Join Date: Jan 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default Compier Error: procedure decleration does'nt match

I am using VB 6.0
I have MDI for that has 4 Menus
Previously few of the items of a menu have index
so I assign index to every item of all the menus
and it gave me error when I compile
"Procedure decleration doesnot match description of event or procedure having same name"

convention followed for assigning index is somthing like this
                                 index
Add 1
   itm 1 11
   itm 2 12
        subitm of itm2 121
        subitm of itm2 122
        subitm of itm2 123
   itm3 13
Delete 2
   itm 1 21
   itm 2 22
        subitm of itm2 221
        subitm of itm2 222
        subitm of itm2 223
   itm3 23
I assigned index because I want to diable mnu items for differant users according to their previllages.

So How to remove the error ........
It is due to the index I've given coz I've commented that sub and it gave me error on other sub and so on............


 
Old January 19th, 2004, 05:33 PM
Friend of Wrox
 
Join Date: Jun 2003
Posts: 627
Thanks: 0
Thanked 0 Times in 0 Posts
Default

I think the problem is in the menu event, that now requires an extra parameter (the menu item index). To find the error, start the application with a full compile (Ctrl+F5, as I recomend to do always instead of F5), and the IDE will show you the line with the compilation error.
Marco
 
Old January 20th, 2004, 03:10 AM
Authorized User
 
Join Date: Jan 2004
Posts: 17
Thanks: 0
Thanked 0 Times in 0 Posts
Default

RESOLVED






Similar Threads
Thread Thread Starter Forum Replies Last Post
template match doesnt match the required node Tomi XSLT 2 March 12th, 2007 06:24 AM
Error: "Ambiguous match found" Ser_Supremo C# 3 November 7th, 2006 06:58 AM
XSLT Decleration Error. lafilip XSLT 8 July 20th, 2006 04:33 PM
Type Miss match error for Server.CreateObject Deepmala Classic ASP Components 0 December 6th, 2005 02:50 AM
Type miss match error Deepmala Classic ASP Databases 0 December 6th, 2005 02:36 AM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.