Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Macro substitution
Message
From
04/10/2004 16:04:47
 
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00948597
Message ID:
00948605
Views:
14
Oops, that was a typo; kSet is = "51"

I have also tried using a name reference as well with no luck like:

REPLACE (TVar) WITH "AO" + cOrder + cLine

Remember, this works except in the EXE case.

-Arne

>>Hi Guys,
>>
>>I have a VFP6 App which needs to use macro substitution to update fields in a table. The app works great running from the command line (i.e. running a PRG that runs a form). However, when I create and run an EXE, VFP just skips right over the REPLACE statement! Even stranger, I use a similar technique in another part of the same app with no problems. The code is like:
>>
>>TVar="T" + ALLTRIM(STR(kSet))
>>REPLACE &TVar WITH "AO" + cOrder + cLine
>>
>>in this case, I have verified that kSet='S51' which is the name of the field I want to update. I have verified that the statements are executing, but NOTHING shows up in the file. I have tried this on several machines with the same result.
>>
>>Any ideas?
>>
>>Desperately,
>>
>>-Arne
>
>TVar="T" + ALLTRIM(STR(kSet))
>REPLACE &TVar WITH "AO" + cOrder + cLine
>
>in this case the field should be calle TS51, and you said yoyr fiedl is called S51, but why are you adding a T then?
arne@synercom-edi.com "There are no absolutes but this one."
President, synercom/edi - Event Ticketing Solutions
Previous
Reply
Map
View

Click here to load this message in the networking platform