Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to update or revert some records
Message
De
24/02/2007 05:58:02
Mk Sharma
Shrishti Solutions
Mumbai, Inde
 
 
À
24/02/2007 03:38:34
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
01198522
Message ID:
01198526
Vues:
8
i have new and old both records in buffer.

can i do like this
SELECT YourTable
SCAN for code=101
   if recno()<0  && buffered new records
      IF Id == [101-1]
         IF TABLEUPDATE(0,.t.,[YourTable])
            ***
         ENDIF
      ELSE
         TableRevert(.f.,[YourTable])
      ENDIF
   else && buffered old records
      IF Id == [101-1]
         IF TABLEUPDATE(0,.t.,[YourTable])
            ***
         ENDIF
      ELSE
         delete      
         IF TABLEUPDATE(0,.t.,[YourTable])
            ***
         ENDIF
      ENDIF
   endif
ENDSCAN
warm regards,
mk.
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform