stopping Handlers

Sarah Reichelt sarah.reichelt at gmail.com
Thu Jan 12 16:12:53 EST 2006


>   on mouseUp
>     if fld "paymenttype" = "credit card" then fcredit ------fcredit
> the card number was filled in
> fSave
>     TotalSeats
>   end mouseUp
>
>
> on fCredit
>     if fld "credit" = "" then answer "NO CREDIT CARD NUMBER" ---- if
> it answers then I want it to stop
>    end fCredit
>

Try this:

on fCredit
    if fld "credit" = "" then
        answer "NO CREDIT CARD NUMBER"
        exit to top
    end if
end fCredit

Cheers,
Sarah



More information about the use-livecode mailing list