William:

Of course, in an external object, it works fine. I made a button and a field. 
The btn script:

on mouseup
    get the script of fld "yourField"
    if the optionKey is down then
       repeat with y = 1 to the number of lines of it
          put "--" before line y of it
       end repeat
     else
       replace "--" with empty in it
    end if
    set the script of fld "yourField" to it
    save stack "yourStack"
end mouseup

Likely this would best be done in a menu. You can set the menuItem to 
something like "Lock Field", toggling to "UnLock Field". Or check the menuItem, 
or 
whatever.

Again, you can have no comments anywhere in the field script.

Craig Newman


**************
Great Deals on Dell 15" Laptops - Starting at $479 
(http://pr.atwola.com/promoclk/100126575x1220433363x1201394532/aol?redir=http:%
2F%2Fad.doubleclick.net%2Fclk%3B212935224%3B34245239%3Bb)
_______________________________________________
use-revolution mailing list
[email protected]
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-revolution

Reply via email to