Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Replace question
Message
 
To
15/09/1998 15:18:48
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Miscellaneous
Thread ID:
00136915
Message ID:
00136939
Views:
18
>Hi, Perry.
>
>You don't show where you assign lcATAFName. I hate to second guess you, but is that where the problem is?
>
>What _does_ happen to the field value after the replace.
>
>Does, by any chance, changing it to
>REPLACE (lcATAFName) WITH lcATAFValue
>help?
>
>
>>Hi all,
>>
>>I have a REPLACE statement that won't work. Here it is
>>
>>lnATAFValue = EVAL('xtab.'+lcFName)
>>lcATAFValue = STR(lnATAFValue)
>>SELECT ATA_Report
>>GO BOTTOM
>>REPLACE &lcATAFName WITH lcATAFValue
>>
>>The REPLACE doesn;t insert the value of the variable into the field &lcATAFName.
>>
>>TIA

Nancy,

Changing it to REPLACE (lcATAFName) WITH lcATAFValue has no effect. It seems to add blanks or do nothing. I checked both values in the debugger and their values are what I want them to be. I even tried it with a trim(lcATAFValue) in case the size of the string was too long and that didn't work.

Thanks
Perry E. Chrzanowski
Programmer/Analyst
Saturn (Solutions) Inc.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform