Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Update field
Message
From
04/08/2006 17:24:08
 
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Environment versions
Visual FoxPro:
VFP 8
OS:
Windows XP
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01143071
Message ID:
01143099
Views:
12
>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

Yes.. and in your example ID = 3 .. stay as is "333333333333" and not updated with "update333".. it was exactly my quesstion
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform