Fields Have Labels

dunbarx at aol.com dunbarx at aol.com
Sun Jan 11 12:28:08 EST 2015


If you: set the label of fld "testField" to "XYZ"


and have, in the card script, say


setProp label
answer random(999)
end label


The control structure does not fire.


If you:  set the ZZTOP of fld "testField" to "XYZ"


and have:



setProp ZZTOP
answer random(999)
end ZZTOP


It does. So the "label" property of a field is not a custom property, it is a built-in property. It is just not settable in the inspector, nor viewable, as has been said, like, say, button labels are.


Craig Newman



-----Original Message-----
From: Mike Bonner <bonnmike at gmail.com>
To: How to use LiveCode <use-livecode at lists.runrev.com>
Sent: Sun, Jan 11, 2015 11:33 am
Subject: Re: Fields Have Labels


IF you set the label of the field, you're not setting a built in property,
you're creating a property named label.

On Sun, Jan 11, 2015 at 8:58 AM, Roger Guay <irog at mac.com> wrote:

> Ya but you can’t set the showName of a field to true, so what good is the
> label?
>
>
> > On Jan 11, 2015, at 8:49 AM, Bob Cole <bobcole at earthlink.net> wrote:
> >
> > put the label of field 1
>
>
> _______________________________________________
> 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
>
_______________________________________________
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