Search and Replace Scripts

Brad Marx ((no email))
Wed, 9 Feb 1994 09:21:25 -0500 (EST)

Is there a convenient way to search all of the cards in a stack and
replace the current scripts with the same change? For example, I want to
do additional checking after a button has been depressed. I know what I
want to add, but is there a way to add the changes in one fell swoop
instead of having to edit each script?

Example:

Current = if audio is True then
play "file1.au"
end if

Desired = if audio is True then
if there is a file "file1.au" then
play "file1.au"
else
show field "File Error Text"
wait errorDelay ticks
hide field "File Error Text"
end if
end if

How can I make this change on all cards when the file (ie: file1, file2,
file3, etc.) is unique to each card?

Also, if I clone a stack, can I replace all of the references in that
stack to reference the new stack name?

Brad

--------------------------------------------------------------------------
| Bradford Marx | Children are natural mimics who act like their parents |
| marxb@bah.com | despite every effort to teach them good manners. |
--------------------------------------------------------------------------