Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Non data bearing primary keys
Message
From
17/06/1998 16:19:54
Dragan Nedeljkovich (Online)
Now officially retired
Zrenjanin, Serbia
 
General information
Forum:
Visual FoxPro
Category:
Other
Miscellaneous
Thread ID:
00106667
Message ID:
00109261
Views:
47
>> go _rcn
>> Replace REST PK with Gimme_Pk() for empty(PK)
>> endif
>>
>>This isn't greatly different, but might speed things up a little.
>
>Nice Call Dragan! REPLACE REST... is something I never used before! But I don't see the REST clause in FPW2.6 syntax, which is the current platform for the code in question here. I'll have to look into this once everything else is in place to move this app over to the VFP world. Thanks!

It's hidden very well, as an explanation for [Scope] clause in Replace, Delete, Count and other multi-record commands:

[cut from help]
Scope Specifies a range of records to replace. Only the records that fall within the range are replaced. The scope clauses are: ALL, NEXT nRecords, RECORD nRecordNumber, and REST.

The default scope for REPLACE is the current record (NEXT 1).
[end cut]

You can find details under "scope clause" in help. I think it exists since 2.0.
My programmers call me "use dragan alias f1" :). I think I've read the help for FP1.x and 2.x several times (except for GenScrn directives - never used Gen* stuff at all).

back to same old

the first online autobiography, unfinished by design
What, me reckless? I'm full of recks!
Balkans, eh? Count them.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform