Home > Community > FPScript > Read access to an argument’s properties > Antwort auf: Read access to an argument’s properties



I write a formula template and need to look at some properties of the arguments.

Here’s the code of the formula “MyFormula” :

Arguments sig
MessageBox "MyFormula - Signal name = " : sig.Name // second message box

Here’s the code I use to call “MyFormula” :

MessageBox "Signal name = " : MySignal.Name // first message box
MyFormula ( MySignal)

FlexPro dispays the first message box, but reports an error “Read access to the object property or the list element ‘Name'”, at the ligne 2 in “MyFormula”.

What’s wrong in my FPScript ?
Is It possible to have read access to the argument’s properties ?

Best regards.