• Industries
  • Products
  • Buy
  • Services & Support
  • Communities
  • Discussion Groups

    .NET

    Reply
    *Dale Levesque

    Problem passing array to COM Class

    38 Views, 0 Replies
    09-07-2005 11:52 AM
    I have a class that is exposed to COM with the following Property.

    If i try to set it using :

    la_Pt(0) = 0.5
    la_Pt(1) = 1.5
    .CenterPoint = la_Pt

    I get an object not set error. I can see the object get created in the watch
    window, but as soon as I try to set the point I get the error.

    Any suggestions?

    Dale

    Public Property CenterPoint() As Array

    Get

    Return mvarCenterPoint

    End Get

    Set( ByVal values As
    Array)

    mvarCenterPoint = values

    End Set

    End Property
    Please use plain text.