Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Getnextmodified() return values
Message
From
30/10/2001 10:34:57
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
 
 
To
30/10/2001 10:31:49
Cetin Basoz
Engineerica Inc.
Izmir, Turkey
General information
Forum:
Visual FoxPro
Category:
Databases,Tables, Views, Indexing and SQL syntax
Miscellaneous
Thread ID:
00575036
Message ID:
00575066
Views:
24
>>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
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform