Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Error Using &
Message
From
29/08/2005 17:02:43
 
 
To
29/08/2005 14:12:12
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Environment versions
Visual FoxPro:
VFP 6 SP5
OS:
Windows XP SP2
Network:
Windows 2000 Server
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01044845
Message ID:
01044930
Views:
14
>This code works fine:
>
>
>temppath = "'" + GetEnv("TEMP")+"\PDM Docs\" + "'"
>If !DIRECTORY(&temppath) Then
>	MD &temppath
>EndIf
>
>
>But when I try to get away from using the Public var temppath with following code I get an error that second line of code is missing a ')'.
>
>
>pdmVar.temppath = "'" + GetEnv("TEMP")+"\PDM Docs\" + "'"
>If !DIRECTORY(&pdmVar.temppath) Then
>	MD &pdmVar.temppath
>EndIf
>
* with var/prop
pdmVar.temppath = GetEnv("TEMP")+"\PDM Docs\"
If !DIRECTORY(m.pdmVar.temppath) Then
	MD (m.pdmVar.temppath)
EndIf
* with macro
pdmVar.temppath = "'" + GetEnv("TEMP")+"\PDM Docs\" + "'"
If !DIRECTORY(&pdmVar..temppath) Then
	MD &pdmVar..temppath
EndIf
Previous
Reply
Map
View

Click here to load this message in the networking platform