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

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

Recommended Posts

Posted

Does someone know which errors the Set Error Capture [On] script step will suppress?? I am simply trying to provide a custom dialog following an export records step, but I am unable to suppress the Filemaker error.

Also, I could work around this if someone knows of a basic file management plugin (that is free or real cheap). Something that will simply check for a directory and make sure the disk is not full etc., or if there is a way from within fm to check for this?

Posted

It is a FM dialog that says :)

"temp.csv" could not be created on this disk. Use a different name, make more room on the disk, unlock it or use a different disk.

This happens for example if the directory does not exist.

Here is my script:

Set Variable [$path; Values:"filewin:/. . . etc"]

Set Error Capture [On]

Export Records [No dialog; "$path";Windows (ANSI)]

If Get(LastError) <> 0

Custom Dialog[. . . ]

End If

The error capture works, because my custom dialog is displayed, but only after the built in FM dialog.

I am assuming the error 800 can not be suppressed. Is there some other way that I can verify the existence of the dir and that I can write the file beforehand?? If not I may just have to live with the standard dialog box.

Posted

I know it is a path problem, because I created the problem. What I want to know is how to suppress the FM dialog and show my own custom dialog when this error is encountered. I can not prevent FM from showing this initial dialog.

Posted

That is exactly what I am doing.

I can make my custom dialog show, but as I already said the FM dialog still shows first!

Posted

Yes,

The manual specifically says that the set error capture will not suppress ALL messages, but it does not specify which ones. Try for yourself and let me know if it works for you.

Try for yourself and see if it works. However, if it can not be suppressed is there another way to check the path etc. before the export? I have found several file plugins that I could use, but not a free one. Is there possibly a way to use the DDE commands to accomplish this. If not I will just have to keep the FM dialog which is somewhat vague.

Posted

Your right it doesn't that's kind of .. not smart.

Why don't you show a dialog using vbscript or something?

This topic is 6562 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.