Export snapshot and errors...

Paul Dupuis paul at researchware.com
Tue Oct 1 09:02:41 EDT 2019


On 10/1/2019 8:58 AM, Paul Dupuis via use-livecode wrote:
> In LC905rc1, the Dictionary entry for Export Snapshot does not appear 
> to indicate how any error value is returned (for example if the file 
> can not be written)
>
> the result is not cleared after an export snapshot - i.e.
>
> put the result into tTemp1 -- if this put "X" in tTemp1
> export snapshot from this cd of stack "Images" to file tFile as PNG
> put the result into tTemp2 -- the result is still "X"
>
> So, does export snapshot return any error values. Shouldn't it? Is 
> this a Documentation bug and there is some return value that is not 
> documented or an Engine bug and if Export Snapshot encounters and 
> error, it should return an error message in the result or empty in the 
> result if successful?
>
> Related: Anybody have a good tip to CLEAR "the result"? If you really 
> want to be sure it is empty before calling something that may change it?
>

Answer my own question on how to clear the result with:

command clearResult
   return empty for error
end clearResult




More information about the use-livecode mailing list