Think of something that you wish Authorware could do but it doesn't?  Let the our good friends at Macromedia know via the wishlist.

Please let us know if you find any of the materials on this site inappropriate or offensive. Please include the url and why the material should be reviewed.

Comments and questions about the site are also welcome. Please no Authorware questions, use the AWARE list.

Back

1042 - Can I use EvalAssign in an Icon Title?

by - Joseph Ganci


Can I use EvalAssign in an icon title?

So that you could put, for instance:

lessonNum := 3

as the icon's title and

EvalAssign(IconTitle)

in the Calc icon.


In the Calc icons in which I use EvalAssign (a practice I don't use often, by the way), I actually will put the following:

EvalAssign(icontitle)
if EvalStatus > 0 then MessageBox(WindowHandle, EvalStatus ^ ": " ^ EvalMessage, "Error in Icon " ^ IconTitle, 0)

This puts up useful information, courtesy of the EvalStatus and EvalMessage variables. That way, if the variable lessonNum doesn't exist in the file,for instance, MessageBox would pop up with:

22: Variable 'lessonNum' is not defined.

The box's title bar would show:

Error in Icon lessonNum := 4

This has been useful to me. I hope it is to you.


There are 0 reviews
Add your review
Back