Mike Yearwood
Toronto, Ontario, Canada
General information
Category:
Coding, syntax & commands
Hi Allan
Nope. &this.property causes the macro substitution to end at the period.
>I am trying to return various environmental settings to their original state when exiting my app.
>I am using the init method of a custom class to save these settings e.g.
>this.calternate = Set('alternate')
>In the destroy method, I have tried many syntax to restore the setting such as:
>1. set alternate this.calternate, set alternate this..calternate, set alternate (this.calternate)
>The above all generate syntax errors when I try to save the class.
>2. set alternate &this.calternate as well as many others compile OK, then generate a syntax error when they execute.
>I know the following compiles and runs without an error:
>local lcAlternate
>lcAlternate = this.calternate
>set alternate &lcalternate
>
>Is there a way to get this to work without the local variables and additional coding?
>
>TIA.
Previous
Reply
View the map of this thread
View the map of this thread starting from this message only
View all messages of this thread
View all messages of this thread starting from this message only