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.


B6001 - Why is Eval not working for me?

by - Joseph Ganci

I'm trying to use a variable to hold the name of a currently checked button so that if an other button becomes checked then I can uncheck the previous button. I need to use a variable as I have no way of knowing which was the previous button that was check. I tried using the EVAL command" 

    string := "Checked@\""^variable^"\" := FALSE" 

However this doesn't seem to work. Any ideas appreciated.

Eval will not work for assignment operations (using := ). Use EvalAssign instead and everything in the world will suddenly be perfect. Hope this helps! 

If you are using version 4.0 or later:  Variables like Checked that normally use the @ designator can now take variables instead of literal icon title strings.  The above two lines can be rewritten as: 

    Checked@variable := FALSE

There are 0 reviews
Add your review