Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Delete records
Message
From
04/08/2004 03:13:12
 
 
To
All
General information
Forum:
Visual FoxPro
Category:
Coding, syntax & commands
Title:
Delete records
Miscellaneous
Thread ID:
00930569
Message ID:
00930569
Views:
60
hi all,

i want to delete record from table1=record form tabel2

i'll try with this code, it delete the first top record only,
CLOSE all
DO WHILE .t.
  SELECT 1
   USE ali
     m.char3=char3
  SELECT 2
   USE ali123
    LOCATE for ali123.char3=m.char3
       IF FOUND()
        DELETE  

         SELECT 1
         skip
           IF EOF()
             EXIT
           ENDIF
      endif
enddo
Next
Reply
Map
View

Click here to load this message in the networking platform