-
FlexPro
- Zoom sur FlexPro
- Fonctionnalités & Options
- Domaines d’application
- Tous les avantages
- Nouveau dans FlexPro 2021
- Testez FlexPro gratuitement
- FlexPro View OEM Freeware
- Conseils d’achat
- Login
- Langue
- +49 6894 929600
- infoweisang.com
- Google Maps
- Produits
- News
- Support
- Société
- Emplois
- Contact
- Login
- Langue
- +49 6894 929600
- infoweisang.com
- Google Maps
Read access to an argument’s properties
- This topic has 2 replies, 2 voices, and was last updated 9 years, 8 months ago by Anonymous.
-
AuthorPosts
-
March 23, 2015 at 11:59 am #12875AnonymousInactive
Hello,
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.
March 23, 2015 at 11:59 am #8535AnonymousInactiveHello,
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.
March 24, 2015 at 8:35 am #9383Bernhard KantzParticipantThe reason for the error is the passing of arguments by value to FPScript function formulas. So the argument sig soesn’t hold the object MySignal, it just gets its value contained in. This will change in FlexPro 10.
If you want to access the object in FlexPro 9, you have to pass the name and access the properties via the indirection operator. E.g. $”MySignal”$.FullName will give you the full path. -
AuthorPosts
- You must be logged in to reply to this topic.