Export snapshot and errors...
Paul Dupuis
paul at researchware.com
Tue Oct 1 11:59:39 EDT 2019
According to the Dictionary, if I am reading it correctly, in a command
(vs function)
return empty -- sets both 'it' and 'the result' to the parameter of the
return statement (in this case empty)
return empty for value -- sets 'it' to the parameter (empty) and clears
'the result' indicating no error (empty)
return empty for error -- set 'the result' to the parameter (empty) and
clears 'it' (empty) indicating no value returned from the command
So, yes, "return empty" will do, but I choose to use "return empty for
error" to remind me that it is purposefully 'the result' that I wanted
to clear.
On 10/1/2019 10:39 AM, Bob Sneidar via use-livecode wrote:
> Is the for error necessary? I just return empty.
>
> Bob S
>
>
>> On Oct 1, 2019, at 06:02 , Paul Dupuis via use-livecode <use-livecode at lists.runrev.com> wrote:
>>
>> command clearResult
>> return empty for error
>> end clearResult
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode
>
More information about the use-livecode
mailing list