AnsweredAssumed Answered

Commit only works as part of button script

Question asked by HugoLidia on Dec 13, 2009
Latest reply on Dec 14, 2009 by HugoLidia

Title

Commit only works as part of button script

Post

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[]

EndIf

 

 

Outcomes