Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Replace fields with relation
Message
Information générale
Forum:
Visual FoxPro
Catégorie:
FoxPro 2.x
Versions des environnements
Visual FoxPro:
FoxPro Windows
OS:
Windows Server 2012
Network:
Windows 2008 Server
Database:
DB2
Application:
Desktop
Divers
Thread ID:
01602617
Message ID:
01602618
Vues:
55
>In a FoxPro 2.6 application, I need to replace fields by using a relation. I thought it should work, but it doesn't.
>
>
>USE Navigation
>SET FILTER TO MyField = 1
>
>USE Dataentry
>SET FILTER TO MyField = 100
>SET ORDER TO EmpNumber
>
>SELECT Navigation
>SET RELATION TO EmpNumber INTO Dataentry
>REPLACE ALL DataEntry.OtherField WITH 1
>
>
>Strange thing, it does not have any effect. Maybe I'm missing something?

Whan you want to replace something in OTHER table than the current alias ALWAYS use IN clause
...
REPLACE ALL OtherField WITH 1 IN DataEntry
Against Stupidity the Gods themselves Contend in Vain - Johann Christoph Friedrich von Schiller
The only thing normal about database guys is their tables.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform