December 26, 200421 yr 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.
December 26, 200421 yr 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:
Create an account or sign in to comment