Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Setting Issues - Syntax Error
Message
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Environment versions
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01028212
Message ID:
01028217
Views:
13
This message has been marked as the solution to the initial question of the thread.
The variable is missing 'lc' prefix. It should be
SET SAFETY &lcMySafetySetting
>Hi Gurus...
>
>Ok... before I waste anymore time on this......
>
>I am getting a syntax error down below......
>
>What I am doing is this....
>
>I have a Class with the following in the INIT
>
>
>        SAFETYSETTING = ""
>
>	PROCEDURE Init
>	
>    	*-- Set the HorizonFolder property to m0sysdr (private variable from outside the class)
>		STORE SET("SAFETY") TO THIS.SafetySetting
> 		SET SAFETY OFF
> 		
>    	This.HorizonFolder = m0sysdr
>    	*-- Set the SettingsFolder to be (HorizonFolder)\settings
>    	This.SettingsFolder = This.PathAppend(m0sysdr,"\settings")	
>	ENDPROC
>
>
>I am saving the SAFETY setting to a SESSION class property
>
>When I call the DESTROY later, I get a SYNTAX error
>
>
>	PROCEDURE Destroy
>		LOCAL lcMySafetySetting
>		lcMySafetySetting = THIS.SafetySetting
>		SET SAFETY &MySafetySetting
>	ENDPROC
>
>
>What am I doing wrong today? Senility sucks.
>
>Thanks!
--sb--
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform