AnsweredAssumed Answered

Help needed to understand how to format script

Question asked by HugoLidia on Dec 13, 2009
Latest reply on Dec 16, 2009 by comment_1

Title

Help needed to understand how to format script

Post

Using Windows XP SP· & FMP 10

 

New to filemaker I am frustrated by not being able to simply hand code a script and being forced to use the Script Manager.

 

For instance, using an "If" statement, the format is If(test; result1; result2).  How does one add the semi-colon to be able to delimit the test from the result1 and result2???

 

This is what I think it should look like.............. 

If [Get(ActiveFieldContents <> " "]; // if the record is not blank, show the appropriate tab control of selected policy

   perform script(GoToPolType)

   perform script(SelectedPolicy);

                                                 // otherwise, do nothing, User can add new record.

Endif

 

But I can only enter (and this does not work) ....... 

If [Get(ActiveFieldContents <> " "] // if the record is not blank, show the appropriate tab control of selected policy

   perform script(GoToPolType)

   perform script(SelectedPolicy)

Endif

 

 

 

I can see that the script manager tool forces valid syntax to be used and valid field names, as these have to be chosen from the drop down lists, so I guess I am missing something oh so simple, but not expalined in the various developer books I have.

 

Somebody tell this dunce where he is going wrong and put me out of my misery!

 

Outcomes