.NET
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
*Dale Levesque
Problem passing array to COM Class
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
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
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
Get
Return mvarCenterPoint
End Get
Set(
Array)
mvarCenterPoint = values
End Set
End Property
