Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Problems with Apostroph in variable!
Message
De
17/04/1999 20:17:12
 
 
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Divers
Thread ID:
00209007
Message ID:
00209443
Vues:
12
<snip>
>>>A good idea! I have a similar problem somewhere else:
>>>SCAN
>>> REPLACE This WITH That FOR !EMPTY(THAT)
>>>ENDSCAN
>>>I suppose, this also is not Rushmore optimizable, but using LEN(That)>0 does not solve it: I would have to say again LEN(ALLTRIM(That)>0, which throws me back again. Do you have a suggestion??
>>
>>Well, one thing that may be slowing down that particular piece of code is the SCAN...ENDSCAN. It's totally unnecessary since the REPLACE...FOR spins thru the entire table also and shouldn't be put inside a SCAN loop.
>>
>>Bonnie
>
>Hi Bonnie,
>Isn't that REPLACE ALL what you mean? If I REPLACE ... FOR I will only replace one record IMHO?

No, Christian, the REPLACE...FOR will replace all records that meet the FOR condition, not just one record.


Bonnie
Bonnie Berent DeWitt
NET/C# MVP since 2003

http://geek-goddess-bonnie.blogspot.com
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform