Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Update field
Message
 
À
04/08/2006 17:05:27
Information générale
Forum:
Visual FoxPro
Catégorie:
Autre
Titre:
Versions des environnements
Visual FoxPro:
VFP 8
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01143071
Message ID:
01143096
Vues:
9
Try this
CREATE TABLE Table1 (Id Int,Field1 C(30))
INSERT INTO Table1 VALUES(5 ,"555555555555")
INSERT INTO Table1 VALUES(3 ,"333333333333")
INSERT INTO Table1 VALUES(2 ,"222222222222")
INSERT INTO Table1 VALUES(10,"101010101010")
INSERT INTO Table1 VALUES(5 ,"double555555")
BROWSE NORMAL
select * from table1 into cursor _tmp READWRITE

GO TOP
LOCATE FOR ID = 3
REPLACE Field1 WITH "update333"

GO TOP
LOCATE FOR ID = 5
REPLACE Field1 WITH "update555"

UPDATE Table1 SET table1.field1 = _tmp.field1 FROM _tmp WHERE table1.id = _tmp.id

SELECT Table1
BROWSE NORMAL
HTH
_______________________________________________________________
Testing displays the presence, not the absence of bugs.
If a software application has to be designed, it has to be designed correctly!
_______________________________________________________________
Vladimir Zografski
Systems Analyst
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform