+ Reply to Thread
Results 1 to 3 of 3

Classes

  1. #1
    Registered User
    Join Date
    02-04-2005
    Posts
    36

    Classes

    Can anyone please explain why I get an error when I try to call methods or properties on the following:

    MODULE Code
    Please Login or Register  to view this content.

    CLASS MODULE clsBankAccount DEFINITION:

    Please Login or Register  to view this content.
    Many thanks in advance
    Ben
    Last edited by blatham; 02-20-2008 at 05:27 PM.

  2. #2
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Please edit your post to add code tags.

  3. #3
    Forum Expert shg's Avatar
    Join Date
    06-20-2007
    Location
    The Great State of Texas
    MS-Off Ver
    2010, 2019
    Posts
    40,689
    Thank you.

    BankBalance is a Double, not an object variable. It requires a Let, not a Set:
    Please Login or Register  to view this content.
    or just
    Please Login or Register  to view this content.
    Second, you misspell clsBankAccount twice in the module code. This would be found at compile time if you put Option Explicit at the top of all modules.

+ Reply to Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts

Search Engine Friendly URLs by vBSEO 3.6.0 RC 1