answer buttons incorporating a varible

Rich Lague laguer at ucs.orst.edu
Sun May 30 14:50:08 EDT 2004


I'm trying to get the answer command to give a button with quoted text 
and a variable in it.

The following script results in 4 buttons: "What's your pleasure?", 
"new eval of another product", "Evaluate" and "someProduct".

on makeChoices
   put "someProduct" into tProduct
   answer "What's your pleasure?" with "new eval of another product"\
   or "open old evaluation" or "Evaluate" && tProduct
end makeChoices

I want 3 buttons with the last button reading "Evaluate someProduct".

I have also tried it like this:

on makeChoices
   put "someProduct" into tProduct
   answer "What's your pleasure?" with "new eval of another product"\
   or "open old evaluation" or "Evaluate && tProduct"
end makeChoices

This script returns three buttons, but the last button reads "Evaluate 
&& tProduct".

Is there a way?

Thanks!

Rich Lague



More information about the use-livecode mailing list