I'm trying to implement
type objpt
x as single
Y as single
end type
Here is my class
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
Persistable = 0 'NotPersistable
DataBindingBehavior = 0 'vbNone
DataSourceBehavior = 0 'vbNone
MTSTransactionMode = 0 'NotAnMTSObject
END
Attribute VB_Name = "Objpt"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_Ext_KEY = "SavedWithClassBuilder6" ,"Yes"
Attribute VB_Ext_KEY = "Top_Level" ,"Yes"
Private mvarX As Single 'local copy
Private mvarY As Single 'local copy
Public Property Let Y(ByVal vData As Single)
mvarY = vData
End Property
Public Property Get Y() As Single
Y = mvarY
End Property
Public Property Let X(ByVal vData As Single)
mvarX = vData
End Property
Public Property Get X() As Single
X = mvarX
End Property
compilation-wise, it looks beautiful. but this simple code blows it:
Public Function PointOf(X As Single, Y As Single) As Objpt
PointOf.X = X
PointOf.Y = Y
End Function
What am I missing?
type objpt
x as single
Y as single
end type
Here is my class
VERSION 1.0 CLASS
BEGIN
MultiUse = -1 'True
Persistable = 0 'NotPersistable
DataBindingBehavior = 0 'vbNone
DataSourceBehavior = 0 'vbNone
MTSTransactionMode = 0 'NotAnMTSObject
END
Attribute VB_Name = "Objpt"
Attribute VB_GlobalNameSpace = False
Attribute VB_Creatable = True
Attribute VB_PredeclaredId = True
Attribute VB_Exposed = False
Attribute VB_Ext_KEY = "SavedWithClassBuilder6" ,"Yes"
Attribute VB_Ext_KEY = "Top_Level" ,"Yes"
Private mvarX As Single 'local copy
Private mvarY As Single 'local copy
Public Property Let Y(ByVal vData As Single)
mvarY = vData
End Property
Public Property Get Y() As Single
Y = mvarY
End Property
Public Property Let X(ByVal vData As Single)
mvarX = vData
End Property
Public Property Get X() As Single
X = mvarX
End Property
compilation-wise, it looks beautiful. but this simple code blows it:
Public Function PointOf(X As Single, Y As Single) As Objpt
PointOf.X = X
PointOf.Y = Y
End Function
What am I missing?