What am I doing wrong here?

Igor de Oliveira Couto igor at semperuna.com
Wed Apr 24 02:03:01 EDT 2013


Quick guess:

On 24/04/2013, at 3:33 PM, Shawn Blc <shawnlivecode at gmail.com> wrote:

> *on* mouseUp
> 
>   *if* grpA1 = correctAnswer *then*
> 
>  *add* 5 to field "fldCorrect"
> 
> *else*
> 
>   *add* 5 to field "fldWrong"
> 
>   *end* *if*
> 
> *end* mouseUp

It seems that "grpA1" and "correctAnswer" are local variables - ie., local to the mouseUp handler - and yet you are not setting the values of these variables anywhere in the handler. 

Is that it?

--
Igor Couto
Sydney, Australia








More information about the use-livecode mailing list