So many ways in XTalks
Eric Chatonet
eric.chatonet at sosmartsoftware.com
Thu Jul 24 14:06:09 EDT 2008
Dear Jacque,
You are right (as Ken was in a recent post).
But my goal is always readability and elegance:
e.g. no break, no 'and' and no 'or': something understandable at
first sight without racking one's brains...
I always prefer it to concision even if I'm able to write put
CleanText(StripCR(toUpper(myList))) into tResult ;-)
Le 24 juil. 08 à 19:51, J. Landman Gay a écrit :
> Eric Chatonet wrote:
>> Bonjour à tous,
>> Le 24 juil. 08 à 07:49, Terry Judd a écrit :
>>> In your card or stack script
>>>
>>> ON mouseDown pMouseBtnNum
>>> IF pMouseBtnNum = 3 THEN
>>> IF word 1 of the target = "field" THEN
>>> IF not(the locktext of the target) THEN
>>> popup btn "contextualMenu"
>>> END IF
>>> END IF
>>> END IF
>>> pass mouseDown
>>> END mouseDown
>> I could not resist ;-)
>
> Me either. :)
>
>> Rev allows many ways to script:
>
> So here is a one-liner that makes your script even harder to read.;)
>
> function PopupAllowed pButton
> return pButton = 3 and word 1 of the target = "field" \
> and the lockText of the target= false
> end PopupAllowed
>
>
> --
> Jacqueline Landman Gay | jacque at hyperactivesw.com
> HyperActive Software | http://www.hyperactivesw.com
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your
> subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>
More information about the use-livecode
mailing list