Bug or new feature?
Éric Miclo
eric.miclo at wanadoo.fr
Tue Jun 7 14:23:06 EDT 2005
Hello,
With the just release 2.6 version I did found that something that
worked well in the previous version won't work as smoothly than before.
It's related to the "ask" command.
Under 2.5.1:
on myCommand
ask question "What do you look for?" as sheet
if it is empty or the result is "Cancel" then
do nothing
else
do something
end if
end myCommand
worked fine when the user pressed the "Cancel" button
but does not in 2.6 when pressing the "Cancel" button just because
"do something" is executed.
I've to rewrite it that way:
on myCommand
ask question "What do you look for?" as sheet
if it is empty or the result is "Cancel" or the result is empty then
do nothing
else
do something
end if
end myCommand
In my opinion, after having a sight at the documentation, it is a
bug. Am I wrong?
Regards,
ÉrIC
-- My NeXT computer will Be a Mac too! --
More information about the use-livecode
mailing list