Does FileMaker 7 support script parameters?
yes, in the actual script i even took out the script parameters and broke up the script into 2. one for forward and one for back, thinking it might help. It does not recognize the "get(lasterror)" script step for some reason. It shows a 401 error but doesn't respond to the If statement.
Don't see any reason why get ( lastError ) would not work in version 7 but I don't have a copy with which to test it.
You can use Get ( FoundCount ) = 0 instead. Wonder if that produces any difference here?
(I'd also put Set Error capture immediately before the Perform Find step instead of at the beginning of the script. That way, any other errors that might occur won't be ignored.)
Get ( LastError) was available at least from FM6.
(For tidiness and less screen flashing, I'd freeze the window, and also show the custom dialogue ('No more revisons etc') after you've returned them to the original found record.)
get(foundcount) was it. thanks guys