Skip to content
View in the app

A better way to browse. Learn more.

FMForums.com

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

get(lasterror) and error 800

Featured Replies

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?

What error message is it?

Lee

  • Author

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.

This error is related to the File Name/File Path.

Check out his Thread Here

Lee

  • Author

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.

Set Error Capture[on]

..

If[Get(LastError) = 800]

Show Custom Dialog

End If

  • Author

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!

Are you 100% sure Set Error Capture is on? And user abort is off?

  • Author

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.

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

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

Create an account or sign in to comment

Important Information

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

Account

Navigation

Search

Search

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.