Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Add records
Message
De
26/08/2004 08:06:13
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
26/08/2004 03:57:54
Information générale
Forum:
Visual FoxPro
Catégorie:
Codage, syntaxe et commandes
Titre:
Divers
Thread ID:
00935865
Message ID:
00936556
Vues:
37
>hi,
>thank you it works,
>i'll try to put a message if no records found in newammar66,
>but not works
>
>CLOSE TABLES ALL
>SET DELETED on
>SELECT RECNO() AS delrecno,* FROM newamar66 ;
>WHERE char21=(thisform.text7.value);
>INTO CURSOR tmpAppend
>
>IF EMPTY('tmpAppend')

EMPTY does not mean the table has no records.

IF RECCOUNT('tmpAppend') = 0


>=messagebox("not found")
>   CANCEL
>   else
>
>USE Toto IN 0
>lnScope = THISFORM.text8.Value
>SELECT tmpAppend
>SCAN NEXT lnScope
>     SCATTER NAME oData
>     INSERT INTO Toto FROM NAME oData
>     SELECT newamar66
>     GOTO tmpAppend.delrecno
>     DELETE
>     SELECT tmpAppend
>ENDSCAN
>
>ENDIF
>
>thanks.
>regards.
>m.qasem
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform