Set error

Set error

Anonymous
Not applicable
184 Views
1 Reply
Message 1 of 2

Set error

Anonymous
Not applicable
He there

I would like to set TEST to a sub within a module


Dim test(0 To 4) As String

Set test(0) = profielen.profiel4545Z((startsectie + sectionlength),
((profiel13 / 2) + x + 67.5), 133, -(txtframeheight - 190))


the module is called profielen and the sub is called profiel4545Z but when I
try to run It I get the error

"compile error expected function or variable" It is very important that I
get this right.


THX

Wiebe
0 Likes
185 Views
1 Reply
Reply (1)
Message 2 of 2

Anonymous
Not applicable
Set is not used with intrinsic types, it is only
used with Object types. Just remove the 'set'
from your assignment statement and it should work.

--
AcadXTabs: MDI Document Tabs for AutoCAD
http://www.acadxtabs.com


"Gizmo" wrote in message news:D4DD3E3817FD1AD4D532913475DABF09@in.WebX.maYIadrTaRb...
> He there
>
> I would like to set TEST to a sub within a module
>
>
> Dim test(0 To 4) As String
>
> Set test(0) = profielen.profiel4545Z((startsectie + sectionlength),
> ((profiel13 / 2) + x + 67.5), 133, -(txtframeheight - 190))
>
>
> the module is called profielen and the sub is called profiel4545Z but when I
> try to run It I get the error
>
> "compile error expected function or variable" It is very important that I
> get this right.
>
>
> THX
>
> Wiebe
>
>
0 Likes