Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
What is the difference, other than the obvious?
Message
 
 
À
10/07/2006 17:26:44
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Versions des environnements
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP1
Network:
Windows 2003 Server
Database:
Visual FoxPro
Divers
Thread ID:
01135147
Message ID:
01135153
Vues:
14
Sam,

There's no reason to use it in the first place so what the difference if it works or not? :)
The following would work as long as the table in the current work area is not at EOF. The REPLACE..IN doesn't have such problem.
lcMyAlias = "MyAlias.MyField"
REPLACE (lcMyAlias) WITH "My Value"
>
>As always you have the solution. But I was looking for a reason why the second one doesn't work.
>

>>
>>The correct way is to use IN clause
>>lcMyAlias = "MyAlias"
>>lcMyField = "MyField"
>>REPLACE (lcMyField) WITH "My Value" IN (lcMyAlias)
>>
--sb--
Précédent
Répondre
Fil
Voir

Click here to load this message in the networking platform