|
July 21, 2000 The getExpression() Method Tips: July 2000
Yehuda Shiran, Ph.D.
|
|
You can get the expression of a dynamic property with the getExpression() method. It echoed back the exact expression you specify with the setExpression() method. The getExpression() method returned a string. We did not use this method in our Solar System example, but had we used it for the Sun:
We would have gotten the following alert box:
setExpression() statement:
And likewise for the moon, had we issued this line:
we would have gotten:
For more on Dynamic Properties, go to Column 65, Dynamic Properties.
People who read this tip also read these tips: Look for similar tips by subject: |