Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
How to update or revert some records
Message
De
24/02/2007 07:03:12
 
 
À
24/02/2007 05:58:02
Mk Sharma
Shrishti Solutions
Mumbai, Inde
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:
01198530
Vues:
7
hi,
i try as..
= CURSORSETPROP('Buffering', 5, 'yourtable' ) 
SCAN FOR ID<>"101-1" and CODE<>101 
  delete  
ENDSCAN
  TABLEUPDATE(1, .t.,[table1])
brow
>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
Répondre
Fil
Voir

Click here to load this message in the networking platform