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 <pmb...@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 > pmb...@gmail.com > http://home.comcast.net/~pmbrig > > > _______________________________________________ > use-livecode mailing list > use-livecode@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@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode