CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 3 of 3

Thread: Object Problems

  1. #1
    Join Date
    Jun 2001
    Posts
    15

    Object Problems

    I have an object and I'm trying to set a key of the object with the values of a class.
    CODE:
    vehiclesComMonDict.Item(vehicleIDin) = Vehicle

    The vehicleIDin is a valid key but I get a
    Runtime-Error 438 "Object does not support this property or method" This should work but I don't know why. Thanks in advance for any help.

    Tim



  2. #2
    Join Date
    Jun 2001
    Location
    MO, USA
    Posts
    2,868

    Re: Object Problems

    This error implies that your vehiclesComMonDict object doesn't have an "Item" property or method.


  3. #3
    Join Date
    May 1999
    Location
    Omika, Japan
    Posts
    729

    Re: Object Problems

    added to the other post:

    Or your instance vehiclesComMonDict is not a Collection. only it is a collection is vehiclesComMonDict.Item(..) is valid.

    may be just call

    vehiclesComMonDict.vehicleIDin = Vehicle

    and check

    RK

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

Featured