March 24, 200520 yr hello world, i'm using the built in script "Perform Find[]" to find matching records. When No records are found, it pops-up a window have 3 buttons: Cancel, continue, and modify find. IF I click on modify find button in the pop-up window, AND click on some other buttons, it doesn't let me do, because the "Perform Find[]" scipt hasn't finish excecuting yet. Is there a way to go around it? Thanks
March 25, 200520 yr Unless your other scripts (buttons) have a script step to change the mode, more than likely back to browse, you will still be in find mode. Either include script steps on your other scripts to ensure that you are in the correct mode - usually browse, or setup your find script to capture all errors and User abort [off] and don't allow exiting the script without resetting back to browse mode.
March 25, 200520 yr There is always a chance of finding zero records. Either there are no matching records or search criteria was enter incorrectly. What I normally do in find script is to turn on Error Capture and then add an If set in the script (If [Get(FoundCount) = 0] 'do some action' EndIf) With Error Capture on and this script step you shouldn't next that dialog box when no records are found. Also wise to set User Abort to off.
Create an account or sign in to comment