2 Replies Latest reply on Dec 14, 2009 6:02 PM by HugoLidia

    Commit only works as part of button script



      Commit only works as part of button script


      Using Windows XP SP3 & FMP 10


      A simple two line script runs perfectly if I have it running from a button, but when using the same two lines (copied and pasted from one into the other - so no spelling or syntax errors) as part of another script the first line runs, but the second doesn't.


      Using the debugger, I can see it stepping through all the code and then on the final line, it is as if nothing is coded. the script just ends.


      If .......



      Set Field[clients::gpolicy_id;policies::policy_no]   // data viewer shows this value being changed

      Commit Records/Requests[]