peronn Posted July 31, 2005 Posted July 31, 2005 Well, i'm stuck! This is the problem. I have a couple of scripts working togheter. The first one looks like this. Go to record - First Loop If (check = "A") Set field (temp; someText) Perform Script (Script 2) Else If Set field (temp; somethingElse) Perform Script (Script 2) End If Go to record (Next; Exit after last) End Loop Then in script 2 theres a couple of other arguments and if's but it calls a third script. The problem is that when i let "chain" go to the third script (1 -> 2 -> 3) then it won't continue looping in the first script. But if i replace the 2 or 3 script with a simple one just displaying a custom dialog then it works fine. My question is if there is any condition that forces the script to continue or if any one has any guesses why it stops?
LaRetta Posted July 31, 2005 Posted July 31, 2005 I believe we would need to know what scripts 2 and 3 do (particularly 2), but a thought ... If it works with just a simple Custom Dialog display (which doesn't require a test), that indicates to me that an Else condition is being missed in your sub-script logic. Check your sub-script If[] tests carefully. You may need an Exit Script within an If[] to force early termination and return to 1.
peronn Posted August 1, 2005 Author Posted August 1, 2005 I will check else and if's and if that doesn't help i'll publish the completescripts! Thanks! P
LaRetta Posted August 1, 2005 Posted August 1, 2005 I missed seeing this the first time. Why do you have an Else If with no test? I assumed it was an Else first time I read it. Without a test, this boolean will always evaluate as false and that Set Field [ ] will never happen.
peronn Posted August 1, 2005 Author Posted August 1, 2005 I solved it! While checking my if conditions i found the problem. After the 2 script was executed and the process returned to the 1 script there was a go to next exit after last script step. The problem was that in one of the linked scripts i changed layout but never changed back. The problem was solved by adding a Go To Layout (a name) after returning from the 2 script. I'm quite happy that i found it so quickly since this is a monster of a script. 7 scripts in all linked together. Thanks for the help! p
Recommended Posts
This topic is 7057 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 accountSign in
Already have an account? Sign in here.
Sign In Now