Message 1 of 4
Function declaration syntax
Not applicable
04-25-2005
02:24 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Is there a syntactically correct way to do something like this?:
Dim Pnt(0 To 2) As Double
Dim myEntity As AcadEntity
Public Function FindPt(ent As AcadEntity)(0 To 1) As Double
.
.
.
End Function
Pnt = FindPt(myEntity)
or do I have to have the funtion return a Variant? If I do then it seems I get a type mismatch.
Dim Pnt(0 To 2) As Double
Dim myEntity As AcadEntity
Public Function FindPt(ent As AcadEntity)(0 To 1) As Double
.
.
.
End Function
Pnt = FindPt(myEntity)
or do I have to have the funtion return a Variant? If I do then it seems I get a type mismatch.