Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Getnextmodified() return values
Message
De
30/10/2001 10:34:57
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
 
 
À
30/10/2001 10:31:49
Cetin Basoz
Engineerica Inc.
Izmir, Turquie
Information générale
Forum:
Visual FoxPro
Catégorie:
Base de données, Tables, Vues, Index et syntaxe SQL
Divers
Thread ID:
00575036
Message ID:
00575066
Vues:
23
>>hmmm... I must be missing something if this true. Tested this with the following.
>>
>>USE table IN 0
>>=CURSORSETPROP("Buffering",5,"table")
>>GO top
>>SKIP
>>REPLACE codedsc WITH "BBBBB"
>>lnrec=GETNEXTMODIFIED(0)
>>? lnrec
>>
>>lnRec at this point returns "2"
>>
>>changes are only commited if a tableupdate is issued And then getnextmodified = 0
>
>Hilmar meant 'newly appended' and not yet committed ones have negative record numbers.
>Try with an append blank or insert into.
>Cetin

A general skeleton to traverse modified records :
lnRec=GetNextModified(0) && Get first
do while lnRec # 0
 if lnRec > 0 && Edited record
 else         && New record
 endif
 lnRec = GetNextModified(lnRec)
enddo
Cetin
Çetin Basöz

The way to Go
Flutter - For mobile, web and desktop.
World's most advanced open source relational database.
.Net for foxheads - Blog (main)
FoxSharp - Blog (mirror)
Welcome to FoxyClasses

LinqPad - C#,VB,F#,SQL,eSQL ... scratchpad
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform