Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Set default to...
Message
From
14/07/2001 13:53:37
 
 
To
14/07/2001 11:16:17
General information
Forum:
Visual FoxPro
Category:
Classes - VCX
Miscellaneous
Thread ID:
00528803
Message ID:
00530680
Views:
19
>>This is from Lucien's original post: Does anyone know why 'set default to &somepath' doesn't work while in a class? In a separate .prg it works fine but when it's part of the code in a class method it generates a 'Command contains unrecognized phrase/keyword' error. At no point in this problem statement does he say it's runtime or compile time. Without know exactly what the value of somepath is it's impossible to supply a definitive answer.
Len-

>(Or maybe she can explain why she is right, bearing in mind the problem with sys(5)).

I shall try one more time. Andrew originally said:

">>I expect it is because class files are binaries, and the & command is inline, hence only works in the "interpreted" .prg files.."

He was asserting that macro expansion does not work in class libraries. That is a false assertion. That it is false is not speculation on my part. I left it to Andre to confirm for himself (and later to you) that it is the case that macro expansion works as well in VCX's as it works in PRGs. I cannot attach a VCX here that demonstrates that. Nor would I, if I could.

Since the assertion is false, the speculation that follows is meaningless.

As for the tone of my response to Andrew's message, you have made your point on that issue. We disagree. There is no more to discuss on the subject.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform