October 19, 200619 yr I have 2 files, say PARENTS and CHILDREN. I create a script in PARENTS that says go to a script in CHILDREN. The script in goes to in children gets records, sorts them and goes to a particular screen. The end of this process is to have the user in that final screen in CHILDREN. What's happening is, the script in PARENTS runs the script in CHILDREN except it returns to the screen in PARENTS. How do I get it to stay in the screen in CHILDREN? By the way, I'm running FM7. Mike
October 19, 200619 yr Hi, Add the script step "Exit Script" or "Halt Script" at the end of the script in the child and the script will end with the child record in focus. HTH Tim
October 19, 200619 yr Exit Script would not work for this, as it only exits the sub-script. And while Halt Script may work (depending on how the focus is being set), it may cause some undesirable consequences, like not completing something else in the Parent script. Exit Script and Halt Script by themselves do not change the focus. To change the focus, you should use the Select Window [ ] script step to either set the focus to the Child window explicitly, or in the Child script use Select Window [ current window ].
October 19, 200619 yr Author THANKS! It worked. By the way, if you have the time, could you explain this "focus" issue? Mike
Create an account or sign in to comment