Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
FPD25 - REPLACE ... WHILE ... is ALL reqd.
Message
From
05/03/2003 07:37:56
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
General information
Forum:
Visual FoxPro
Category:
FoxPro 2.x
Miscellaneous
Thread ID:
00761380
Message ID:
00761411
Views:
45
This message has been marked as a message which has helped to the initial question of the thread.
>Hi All
>
>I have these lines:
>
>
SEEK m.id
>REPLACE ... WITH ... WHILE dbf.id = m.id
>
>Is this okay cause at time I have found it to fail. Is the failure my otherwise problem or this command problem. Is ALL required as below?
>
>
SEEK m.id
>REPLACE ALL ... WITH ... WHILE dbf.id = m.id
>
>Please advise

No ALL is not needed. It might fail if you're changing the id field.
You can use 'for' in that case or update-sql :

REPLACE ... WITH ... FOR dbf.id = m.id

or :
update myTable set fieldname = value where id = m.id

Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform