Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 7490 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a simple FMP 5.5 script that deletes empty records when the file is closed.

It is, simply:

allow user abort [off]

perform find [restore] (were all fields are empty)

delete all records [no dialog]

This works great in FMP 5.5, but in FMP7, there is a dialog and I am not sure how to work around it.

It says, "No records match this set of find requests" when there are no records found by the find. What is WORSE is it gives the user the [continue] and (gasp!) [modify find] buttons!!!

This did not happen in FMP 5.5.

I have user abort off, but that does not help. How to I turn this message off?

thanks,

--Tripod

Posted

I would think Set Error Capture [On] would have been necessary in 5.5 as well. But that should hide the dialog for 7 anyway, according to the help: "On suppresses FileMaker Pro alert messages and some dialog boxes."

Posted

Thanks, no, for some reason, v5.5 did not require it. Must be a new warning, and I was completely drawing a blank on error capture--I was thinking that user abort would cover it, but obviously not when an error message passes control to the user.

Hey, I promise to stop posting nonsense like this once I get past the newbie level... smirk.gif

--Tripod

Posted

User Abort only succeeds in preventing a user from clicking Cancel in the status area or pressing Escape and whatnot.

Perhaps it didn't provide a warning before because you weren't entering Find mode before performing a find, though I still think this quite odd. I just did a Perform Find test without Error Capture and received the "Cancel", "Modify" dialog. I added User Abort and it changed to "Modify" and "Continue". Either way, I still got an error dialog. Are you certain there's no script calling this one that has Error Capture turned on?

Posted

Yeah, I'm sure. The whole script was three lines and I posted that above. This was on a Mac, so maybe that is the difference. This is why I posted it here, because the default was so different, I thought maybe someone would be interested. And, I could not remember the specifics of how to do error capture, and YEAH, I need the post count. grin.gif I just took out that script which was called on close. All it did was take out blank records anyhow. You are right, the script doesn't enter find mode, but it works that way anyhow (just with the additional error message if there are no blank records when the scripted find is performed in FMPD 7.

Thanks,

--Tripod (somewhere in Indiana)

Here's one for you:

What are we going to do today, Brain? Same thing we always do, Pinky. Try to take over the world!

This topic is 7490 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.