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

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

Recommended Posts

Posted

Good afternoon -

I have a script that is running great - except that it never stops looping. I have a pause step in it - so I can stop it for testing, but I need your advice.

Here is an outline of the script -

Enter Browse

goto Layout (List of Invoices)

Preform SubScript (finds overdue invoices - in current db)

goto First Record

Loop

Copy (Invoice #)

Preform Subscript (creates finance charge - in line items db)

goto Layout (Print Invoice)

Enter Preview (pause)

Page Setup

Print

Next Record (exit after last)

End Loop

Exit Script

It all works great - except that it is looping over and over again. I only have one invoice it should find - it finds that and gives it finance charges over and over again.

Why isn't it exiting after last - something to do with just one record found?

Thanks for your advice.

Posted

You are trying to go to the next record in Preview mode.

Posted

Thank you -

That seemed to have taken care of my problem. I was just able to delete the Preview mode step.

Why can you not have the Preview Mode inside your loop?

Thanks again

Posted

When in Preview mode, the Go to Record step changes pages -- just like PgUp or PgDn.

You could leave the Preview mode step in: just remember to change back into Browse mode when it's required.

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