Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set alternate syntax and custom classes
Message
From
04/02/2004 16:29:50
Mike Yearwood
Toronto, Ontario, Canada
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00874190
Message ID:
00874193
Views:
14
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
Map
View

Click here to load this message in the networking platform