Printing in LC 7.0.3

J. Landman Gay jacque at hyperactivesw.com
Thu Mar 5 10:26:32 EST 2015


Regardless of how comma works, the result is still a string and this handler puts the literal value of that string into a variable. Literals require quotes around them, and while the engine may have been more lenient about that pre-7.0 the quotes should technically be there. So before I'd report this as a bug, I'd see If using the required syntax fixes it. 


On March 5, 2015 5:40:40 AM CST, Mike Doub <mikedoub at gmail.com> wrote:
>Graham, I think you misunderstood my comment.   The comma is actually a
>function.  It concatinates two string with a comma in the middle.  Much
>like &&.
>
>I got confused on this one too.   But it is really helpful, especially
>when
>working with screen coordinates.
>
>Mike
>
>On Thursday, March 5, 2015, Graham Samuel <livfoss at mac.com> wrote:
>
>> I don’t think ‘put’ is a function, it’s a command. According to the
>LC
>> Dictionary, it expects "any expression that evaluates to a string.”
>So it
>> is quite clever of the engine to interpret a set of numbers separated
>by
>> commas as a string.
>>
>> LC has a number of helpful interpretations like this, but I'm not
>sure how
>> many of them are official. If unofficial, then it's presumably legit
>(even
>> if very annoying) when RunRev tightens the rules.
>>
>> Graham
>>
>> > On 5 Mar 2015, at 04:17, Mike Doub <mikedoub at gmail.com
><javascript:;>>
>> wrote:
>> >
>> > Lookup ,  in the dictionary.   It is a function.
>> >
>> >
>> >
>> > On Wednesday, March 4, 2015, stephen barncard <
>> > stephenREVOLUTION2 at barncard.com <javascript:;>> wrote:
>> >
>> >> On Wed, Mar 4, 2015 at 10:34 AM, Terence Heaford
><t.heaford at icloud.com
>> <javascript:;>
>> >> <javascript:;>>
>> >> wrote:
>> >>
>> >>> put 0,0,300,200 into tPrintRect
>> >>
>> >>
>> >> why no quotes around the comma delimited list?
>> >>
>> >> --
>> >> Stephen Barncard - Sebastopol Ca. USA - Deeds Not Words
>> >> _______________________________________________
>> >> use-livecode mailing list
>> >> use-livecode at lists.runrev.com <javascript:;> <javascript:;>
>> >> 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 <javascript:;>
>> > 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 <javascript:;>
>> 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

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com




More information about the Use-livecode mailing list