Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace question
Message
 
À
15/09/1998 15:18:48
Nancy Folsom
Pixel Dust Industries
Washington, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00136915
Message ID:
00136939
Vues:
19
>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.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform