Application Methods

Application Methods

Anonymous
Not applicable
713 Views
3 Replies
Message 1 of 4

Application Methods

Anonymous
Not applicable

Why is this line of code bad?

 

Autodesk.AutoCAD.ApplicationServices.Application.ShowAlertDialog("Test");

 

0 Likes
714 Views
3 Replies
Replies (3)
Message 2 of 4

kerry_w_brown
Advisor
Advisor

 

That line is not in the least naughty.

It looks perfectly acceptable sitting there, all by itself,  being well behaved.

 

Perhaps the company it keeps may be questionable.


// Called Kerry or kdub in my other life.

Everything will work just as you expect it to, unless your expectations are incorrect. ~ kdub
Sometimes the question is more important than the answer. ~ kdub

NZST UTC+12 : class keyThumper<T> : Lazy<T>;      another  Swamper
0 Likes
Message 3 of 4

chiefbraincloud
Collaborator
Collaborator

Good one, Kerry.  That's just about what I was thinking. Smiley Very Happy

 

Of course, somtimes it's the innocent looking ones you have to watch out for!

Dave O.                                                                  Sig-Logos32.png
0 Likes
Message 4 of 4

Anonymous
Not applicable

If you tell me why this bad

Autodesk.AutoCAD.ApplicationServices.Application.ShowModalDialog(frm);

I will tell you why yours is bad

0 Likes