Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro substitution
Message
 
 
To
26/12/2002 11:17:16
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00735756
Message ID:
00735903
Views:
19
It was not clear from the post. In the last case he should use evaluate, as Sergey showed.

>lcDir holds reference to a field ("tablename"+alltrim(str(i))+".cfield"). He wants the value in cfield not 'tablenameN.cfield'
>Cetin
>
>>I don't see, why it didn't. What is lcDir again?
>>
>>I just ran this test at command window:
>>
>>lcDir = '5'
>>lcTemp = "temp"
>>
>>store m.lcDir to (m.lcTemp)
>>?temp
>>?type('temp')
>>
>>Worked fine for me.
>>
>>>Sorry, but your sugestion did not work. However, if you do like this
>>>store &lcDir to (m.lcString) or store EVALUATE(lcDir) to (m.lcString), it works. Now, there is no macrosubstitution any longer but how to write the code with only name expressions, i.e. without EVALUATE().
If it's not broken, fix it until it is.


My Blog
Previous
Reply
Map
View

Click here to load this message in the networking platform