do. command. safety. ?

Richard Gaskin ambassador at fourthworld.com
Sat Mar 31 22:57:16 EDT 2018


Jacque wrote:
 > could you provide an example where the embedded command would actually
 > execute?

A variant of Mark's example which executes when passed to fooEvil but 
not when pass to fooGood:

on mouseUp
    put "into x "&quote&";answer GOTCHA &cr& word 1 of the params #" \
        into tUserInput
    fooGood tUserInput
    fooEvil tUserInput
end mouseUp

on fooGood pUserInput
    do "put pUserInput into x"
end fooGood

on fooEvil pUserInput
    do "put " &quote& pUserInput &quote&" into x"
end fooEvil


-- 
  Richard Gaskin
  Fourth World Systems
  Software Design and Development for the Desktop, Mobile, and the Web
  ____________________________________________________________________
  Ambassador at FourthWorld.com                http://www.FourthWorld.com




More information about the use-livecode mailing list