Stupid Q number 1000

Klaus major-k klaus at major-k.de
Fri May 20 11:23:36 EDT 2016


Hi Richmond,

> Am 20.05.2016 um 17:17 schrieb RM <richmondmathewson at gmail.com>:
> 
> I wonder why this script doesn't work in LC 8.0.1:
> 
> on mouseUp
>   ask file "Choose where you wish to save your stack"
>  if the result = "cancel"
>  then exit mouseUp
>  else
>     save stack "New Stack"
>     end if
> end mouseUp

for the same reason this will not work in earlier version:
It is missing the „point"! :-D

This works, spot the difference:
on mouseUp
  ask file "Choose where you wish to save your stack"
  if the result = "cancel" then
    exit mouseUp
  else
    set the filename of stack "New Stack" to it
    save stack "New Stack"
 end if
end mouseUp

> Richmond.

Best

Klaus

--
Klaus Major
http://www.major-k.de
klaus at major-k.de





More information about the use-livecode mailing list