>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.