Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Delete records
Message
De
04/08/2004 04:26:07
 
 
À
04/08/2004 03:13:12
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00930569
Message ID:
00930576
Vues:
14
Hi Mohammed,

first of all, you must put the USE lines outside the loop!!

>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
>
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform