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.

user abort of a loop

Featured Replies

I have an FM6 DB with a script that results in printing academic reports for a particular year's students.

The script opens a report file for a student, on user pressing continue, prints the report, closes the report then opens the next student's report.

If cancel is pressed on the printer dialogue box being pressed then it closes that student's file and opens the next student's and so on.

But the problem is that once the script is started then ALL students' reports need to be processed before the script ends.

How can I add some script so that the user can abort the script at any time through the process?

Below is part of the script that controls the printing!

If [ Academic Year < 11 ]

Go to Record/Request/Page

[ First ]

Loop

Perform Script [ “Print Report” ]

[ Sub-scripts ]

Go to Record/Request/Page [ Next, Exit after last ]

End Loop

Else

The "Print Report" script is:

Allow User Abort [ Off ]

Set Error Capture [ On ]

If [ Academic Year < 11 ]

Go to Related Record [ StudOut_ ]

[ Show only related records ]

Perform Script [ Filename: “StudOut_.fp5”, “Print Student Reports from Student File” ]

[ Sub-scripts ]

Do I need to provide more info about the "StudOut" script?

Please help

Stephen

look at adding in combination of modifier keys so you can hold down shift or ctrl or alt or all etc...:)

If [ Get ( ActiveModifierKeys ) = 4 ] see mod key help for info

Exit Script

Else

<>

End If

or why not...

Exit Loop If [ Get ( ActiveModifierKeys ) = 4 ]

much simpler and probably clearer to read

PS you may need something in the calc to test for the caps lock key being stuck down...

Edited by Guest

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.