Please suggest an easy way to deactivate a fields scripts
DunbarX at aol.com
DunbarX at aol.com
Wed Mar 18 12:09:37 EDT 2009
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)
More information about the use-livecode
mailing list