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

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

Recommended Posts

Posted

Still learning Filemaker Pro 6.0 so please bear with me.

I have created a script that performs a find on a Actor DB (This appears to work find).

If there is no data found then i have it do the following:

Show all records

sort

go to layout (original Layout)

perform script(GoToMainMenu)

exit script

endif

* The GoToMainMenu Script is a simple script that calls an external script (in Movie File) that takes you to the MainMenu of the Movie File *

Here is where my problem lies:

The best i have been able to do is get a different layout in the "Actor" file to be displayed.

I am at a loss for the reason for this.

I have tried miminizing the "Actor" layout and still that layout is the one displayed.

Can anyone help me with this and explain what is going on?

Thanks in advance for any help.

Posted

It's the "exit script" that lives in the file that calls the subscript. You need to make the If'ing opposite so if anything found you do the business and then exit the script, while if nothing is found your script continues by calling the external script as last line in the script.

Set Error Capture [ On ] 

Enter Find Mode [ Pause ]

Perform Find

Set Error Capture [ Off ]

If [ Status(CurrentFoundCount) ]

-----------------------------Your actions with the found records HERE!!

Exit Script

End If

Show All Records

Sort [ Sort Order: ] [ Restore sort order, No dialog ]

Perform Script [ Filename:

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