[Beginner] Put the label of btn "btnA"
Mike Bonner
bonnmike at gmail.com
Sat Jan 10 18:24:06 EST 2015
Couple notes..
put the fld "lblDate" & " " & the label of btn "btnA" into fld "fldTitle"
It apparently doesn't matter in the above, but the word "The" is kinda the
designates a property. the field "blahbla" apparently works, but field is
an object not a property, so be careful of that.
And then, you could simplify things by using the double ampersand method
since it inserts a space for you.
put fld "lblDate" && the label of btn "btnA" into fld "fldTitle" will
putput the same as above because the && inserts a space.
On Sat, Jan 10, 2015 at 4:18 PM, Shawn Blc <shawnlivecode at gmail.com> wrote:
> Excellent. Got it. Thanks guys.
>
> *put* the fld "lblDate" & " " & the label of btn "btnA" into fld
> "fldTitle"
>
> On Sat, Jan 10, 2015 at 5:12 PM, Shawn Blc <shawnlivecode at gmail.com>
> wrote:
>
> > Thanks everyone. I'll try and update.
> >
> > On Sat, Jan 10, 2015 at 4:49 PM, Mike Bonner <bonnmike at gmail.com> wrote:
> >
> >> Oh yep. No label for fields. (unless you create a label property for it
> >> of
> >> course) so putting the label of the field will put empty. Probably
> what
> >> you want is the text of the field. or just "put field "lbldate"
> >>
> >> On Sat, Jan 10, 2015 at 3:43 PM, Peter M. Brigham <pmbrig at gmail.com>
> >> wrote:
> >>
> >> > On Jan 10, 2015, at 5:19 PM, Shawn Blc wrote:
> >> >
> >> > > *put* the label of btn "btnA" and the label of fld "lblDate" into
> fld
> >> > > "fldTitle"
> >> > >
> >> > >
> >> > > When I use the above, I get false.
> >> >
> >> > Buttons have labels, but fields don't. More properly, "label" is a
> >> > property of buttons, but not of fields, so the label of fld "lblDate"
> >> will
> >> > return empty. Then you use the binary operator "and" which requires
> >> boolean
> >> > arguments. The engine will get the label of the button (a string of
> some
> >> > kind) which evaluates to neither true nor false when treated as a
> >> boolean,
> >> > and empty, which evaluates to neither true nor false when treated as a
> >> > boolean, and the result of <indeterminate> and <indeterminate> is
> >> false.
> >> > If you want to concatenate two strings, you should use the "&"
> operator:
> >> > put "one thing " & "and another thing" into fld "fldTitle"
> >> > will give you
> >> > one thing and another thing
> >> > And if you use "&&" then the space will be entered for you:
> >> > put "one thing" && "and another thing" into fld "fldTitle"
> >> > will give you
> >> > one thing and another thing
> >> >
> >> > -- Peter
> >> >
> >> > Peter M. Brigham
> >> > pmbrig at gmail.com
> >> > http://home.comcast.net/~pmbrig
> >> >
> >> >
> >> > _______________________________________________
> >> > 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
> >>
> >
> >
> _______________________________________________
> 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