Results 1 to 3 of 3

Thread: Property Let/Get *resolved*

  1. #1

    Thread Starter
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860

    Property Let/Get *resolved*

    The following code, located in a module, gives me an error:

    VB Code:
    1. Public Property Get Length(n As Long)
    2.  
    3. End Property
    4.  
    5. Public Property Let Length(n As Long)
    6.    
    7. End Property

    I know the let satement needs the same arguments as the get statement... but I get an error saying:
    Definitions of property procedures for the same property are inconsistent, or property has an optional parameter, a ParamArray, or an invalid set final parameter.

    It must be the last option in the error message, because the others seem to be false.
    Last edited by alkatran; May 17th, 2004 at 06:43 PM.
    Don't pay attention to this signature, it's contradictory.

  2. #2

  3. #3

    Thread Starter
    Fanatic Member alkatran's Avatar
    Join Date
    Apr 2002
    Location
    Canada
    Posts
    860
    That doesn't work? It may be other things contained in the module.. I'm trying it in a an empty one..

    Edit: Yes, it works in a class module by itself, but not in the existing one?

    Whoah, wait, it just started working.. I think I had a stupid erro rint here that I wrote over..
    Last edited by alkatran; May 17th, 2004 at 06:41 PM.
    Don't pay attention to this signature, it's contradictory.

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