Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Setting Issues - Syntax Error
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 8 SP1
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Divers
Thread ID:
01028212
Message ID:
01028217
Vues:
14
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--
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform