the focusedObject

Richard Gaskin ambassador at fourthworld.com
Sun Jan 11 21:51:24 EST 2009


Jeanne A. E. DeVoto wrote:
> To fix this, you'll need to express the field reference as a string, in quotes:
> 
>    if the focusedObject is "field id 1045 of card id 1002 of stack" \
>       && quote & "BLEdit" & quote && "of stack" && quote & "clients" & quote

For those who believe they hate JavaScript's syntax, having its support 
for single-quotes would greatly simplify many things, such as the above:

    if the focusedObject is 'field id 1045 of card id 1002 of stack 
"BLEdit" of stack "clients"'

So much easier to read and to write.

--
  Richard Gaskin
  Fourth World
  Revolution training and consulting: http://www.fourthworld.com
  Webzine for Rev developers: http://www.revjournal.com



More information about the use-livecode mailing list