Message 1 of 7
vba eval broken?.
Not applicable
06-28-2006
12:50 AM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hello, I have stumbled on a problem. If you try to use eval to call user defined subs autocad will generate an error.
Example:
Public Sub TestEval1()
Eval "MsgBox ""This works"""
End Sub
but
Public Sub TestEval2()
Eval "ShowMsgBox ""Doesnt work."""
End Sub
Public Sub ShowMsgBox(msg As String)
MsgBox msg
End Sub
Calling user defined funktions with eval worked in ver 2002 but doesnt work since atleast ver 2005.
Have anyone noticed this problem before?.
/Rikard
Example:
Public Sub TestEval1()
Eval "MsgBox ""This works"""
End Sub
but
Public Sub TestEval2()
Eval "ShowMsgBox ""Doesnt work."""
End Sub
Public Sub ShowMsgBox(msg As String)
MsgBox msg
End Sub
Calling user defined funktions with eval worked in ver 2002 but doesnt work since atleast ver 2005.
Have anyone noticed this problem before?.
/Rikard