Does a Control Exist?
acm at armas.com
Mon Nov 25 00:29:33 EST 2013
What ever happened to "on error"?
On Nov 24, 2013, at 9:25 AM, Peter Haworth <pete at lcsql.com> wrote:
> I feel like that's more a problem with custom property creation than a
> problem with errors on objects that don't exist. The custom property issue
> has been discussed a few times on the list and Alex Tweedly has a neat
> little stack that helps with the issue. Sure wish there was an engine/IDE
> solution to it though.
> lcSQL Software <http://www.lcsql.com>
> On Sun, Nov 24, 2013 at 8:31 AM, Ray <ray at linkit.com> wrote:
>> After loosely following the item delimiter thread last week a similar idea
>> came to me today which might be an interesting discussion.
>> It's often time consuming to type spell out...
>> if there is a field "My Field" then put field "My Field" into myVar
>> If I don't first check to see if the control exists [and it doesn't] I get
>> an error and the script stops execution.
>> I don't have to do this with a custom property. That is if the script
>> put the NewProperty of this card into myVar
>> and said property doesn't exist, I simply end up with nothing in myVar,
>> but it doesn't cause an error and the script continues.
>> Does anybody think it would be worth it to have a way to stop errors from
>> being produced when referring to non-existent controls?
>> Ray Horsley
>> LinkIt! Software
>> use-livecode mailing list
>> use-livecode at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode