> Am 31.10.2019 um 18:04 schrieb Bob Sneidar via use-livecode 
> <use-livecode@lists.runrev.com>:
> 
> When you call the command or when you save the script?

when hitting ENTER in the script editor = compiling

> Mine compiled.

???
I use LC 9.5 on macOS 10.14.6

> In any case I'll update it to use DO. 
> 
> Bob S
> ...
>> 
>>> on exportScaledImage pSourceFile, pDestFile, pScaleFactor, pFormat
>>> ...
>>> switch pFormat
>>>    case "JPEG"
>>>       export the templateimage to file (pDestFile) as JPEG
>>>       break
>>>    case "BMP"
>>>       export the templateimage to file (pDestFile) as BMP
>>>       break
>>>    case "PNG"
>>>       export the templateimage to file (pDestFile) as PNG
>>>       break
>>> end switch
>>> ...
>> too bad LC does not like a variable for the target format:
>> ...
>> export the templateimage to file pDestFile as pFormat
>> ...
>> -> Compile error

Best

Klaus

--
Klaus Major
https://www.major-k.de
kl...@major-k.de


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to