Can I Accessing Variables Outside a MSC or MSF Own Partition? Primary Software: MATRIXxPrimary Software Version: 7.1 Primary Software Fixed Version: N/A Secondary Software: N/A
Problem: I want to access a variable that is outside the hidden partition of my MathScript Function (MSF) or Command (MSC). I have tried using partitionname.variablename and it seems to work, but the help states: "It is possible to access (read-only) variables in defined partitions by using explicit variable naming (partitionName.variableName)." Can I access variables outside the function or command partition? Solution: Yes you can access variables outside of the command or functions partition, both reading and writing. The help for MATRIXx 7.1 has been updated to reflect this, although it is true for other versions of MATRIXx as well. At the same time accessing a variable outside of the command or function should be done with caution. When reading, the function is relying on the variable to be there, which limits the portability of the function. When writing, it would be easy to overwrite an important variable by mistake. Related Links: Attachments:
Report Date: 05/12/2004 Last Updated: 05/12/2004 Document ID: 2ZLDBGA3 |
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
