Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Why?
Message
From
11/01/1999 10:55:39
 
 
To
11/01/1999 08:17:17
John Baird
Coatesville, Pennsylvania, United States
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Re: Why?
Miscellaneous
Thread ID:
00174204
Message ID:
00174660
Views:
30
>The REPLACE example was just an example. We were talking about the technical reasons behind the prohibition. Thanks for the help.

They why is simple - the '.' delimiter in the property expression terminates the macro expansion before the property expression is seen. It's much the same reason you can't macro expand a field in the notation < tablealias >.< fieldname >

>
>>>can I do this:
>>>
>>>this.cView = 'ViewName'
>>>lcView = this.cView
>>>
>>>REPLACE &lcView..FieldName WITH value
>>>
>>>and not this:
>>>
>>>REPLACE &this.cView..FieldName WITH value?
>>>
>>>
>>
>>Macro substitution doesn't work properly on properties. Why not:
>>
>>REPLACE (lcView + '.FieldName') WITH VALUE
>>
>>and
>>
>>REPLACE (this.cView + '.Fieldname') WITH VALUE
>>
>>which should always work...and is faster, too.
>>
>>>Thanks in advance.
EMail: EdR@edrauh.com
"See, the sun is going down..."
"No, the horizon is moving up!"
- Firesign Theater


NT and Win2K FAQ .. cWashington WSH/ADSI/WMI site
MS WSH site ........... WSH FAQ Site
Wrox Press .............. Win32 Scripting Journal
eSolutions Services, LLC

The Surgeon General has determined that prolonged exposure to the Windows Script Host may be addictive to laboratory mice and codemonkeys
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform