>> 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).