borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder

AndreaVB | Forum | News | Downloads | Register | Help | Member List | Statistics | Search | PM | Profile

Print This Topic
Previous Topic (Communication Ports detection both in Windows 95/95 and Windows NT/2000.)Next Topic (How to create custom Forms) New Topic New Poll Post Reply
AndreaVB Forum : VB General : Method or data member not found
Poster Message
MAL
Level: Guest


icon Method or data member not found  Archived to Disk

I am suddenly getting the following compile-time error: "method or data member not found." VB is complaining about functions that have existed in the same class file for a long(!) time.

Thinking that there is some limitation on the symbol table size of a .cls file, I have moved several functions out of the class into a .bas file. Still the same error, although the error seems to move to different class function calls.

I know that the current function being labeled with the error is really there, but VB can't seem to find it.

Is there a fix for this?

How does the VB compiler know that the object defined will be a new class, anyway?

25-04-2002 at 06:14 PM
| Quote Reply
JLRodgers
Level: Moderator

Registered: 04-04-2002
Posts: 1617
icon Re: Method or data member not found  Archived to Disk

Not that it'll fix the problem, but try the following:

Make sure you have the following in the code (similar based on your case):

' If no events in the class
Dim ClassVariable as New Classname
' Else
Dim ClassVariable as Classname
Set ClassVariable = New Classname

' When no longer need the class
Set ClassVariable = Nothing


And if that doesn't work make sure all references to the project are loaded and exist (don't have a "Missing" next to them).

I've seen that cause a similar problem with simple built in functions like "Abs", "Rnd", or "Control.anything"

09-05-2002 at 06:00 PM
View Profile Send Email to User Show All Posts Visit Homepage | Quote Reply
AndreaVB Forum : VB General : Method or data member not found
Previous Topic (Communication Ports detection both in Windows 95/95 and Windows NT/2000.)Next Topic (How to create custom Forms) New Topic New Poll Post Reply
Surf To:


Not Logged In? Username: Password: Lost your password?
Partners: Download Actual Software | Free Software Download
borderAndreaVB free resources for Visual Basic developersborder

borderAndreaVB Visual Basic and VB.NET source code resources - Copyright © 1999-2007 Andrea Tincaniborder