 |
vbgen Level: Moderator
 Registered: 10-10-2002 Posts: 876
|
Error in class
hello... i've enccountered an error in my program.
i made access to a class module within the project, and when i run the program, having used one function of the module, i get this error:
no error number.
expected function or variable.
what does it mean?
how can i solve this problem?
thanks.
____________________________
Been busy trying to take a second degree <--it's not working out...
|
|
03-12-2002 at 05:24 AM |
|
|
JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 1617
|
Re: Error in class
Never seen it offhand...
If the class module is in the program (and not in a separate DLL/OCX), have you tried to run the program with "Break on All Errors" in error trapping, or just stepping line by line through the code once it hits the class?
I'm of course assuming that the class you're trying to access has a variable assigned to it, and the routine your trying to access does exist.
The help file makes the error seem like you're trying to reference a routine that doesn't exist, or assigning a value to a routine that isn't a (Let/Get/Set) property.
[Edited by JLRodgers on 02-12-2002 at 11:39 PM GMT]
|
|
03-12-2002 at 05:38 AM |
|
|
JLRodgers Level: Moderator
 Registered: 04-04-2002 Posts: 1617
|
Re: Error in class
Could you post the code? It would be easier to find the error.
[Hope it's a public function that has a long not a sub.]
It wouldn't happen to be a "reserved" VB word would it (the routine name)? You may want to try to run with compile (CTRL-F5) to see if any error popups then too (it would eliminate any problems with the declaration of the routine - syntax)
And if you're passing a variable that's a defined type [array, or anything with multiple parts] to the function, it has to be ByRef, not Byval. Not that it's that, but potential problems that don't show up until accessing the routine, or "running with compile".
|
|
03-12-2002 at 06:43 AM |
|
|
|
|
 |
 |