|
-
Aug 21st, 2000, 06:44 AM
#1
Thread Starter
New Member
I'm using VB6.
Can anyone please tell me how would it be possible for me to have a
CLASS METHOD that has a public USER-DEFINED DATATYPE as one of its
arguments.
Example:
'-----In a public module (.BAS)
Public Type POINTAPI
x As Long
y As Long
End Type
'-----In a class (.CLS)
Public Sub GetPoints(ByRef numOfPoints As Integer, _
ByRef floorPoints() As POINTAPI)
- The method declaration above will generate the following error :
"Only public user defined types defined in public object modules can
be used as parameters or return types for public procedures of class
modules or as fields of public iuser defined types"
- Is there a way to get around with such problem?
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|