>>
>>The "do while not eof()" is going to be a drag on performance. Why not just search for one record since you are only adding one record? Maybe some thing like this...
>>
>>*SAVE CURRENT "SET DELETE" STATE
>>STORE SET("DELETE") TO DELE_STATE
>>*TURN IT OFF
>>SET DELE OFF
>>
>>
>>*SAVE CURRENT INDEX ORDER
>>STORE ORDER() TO M.ORDER_STATE
>>*TURN IT OFF
>>SET ORDER TO 0
>>
>>LOCA FOR DELETED() OR EMPTY(NAME)
>>
>>IF NOT FOUND()
>> APPEND BLANK
>>ELSE
>> RECALL
>>ENDIF
>>
>>THISFORM.GRID1.COLUMN1.SETFOCUS
>>
>>*RESTORE "SET DELETE" STATE
>>SET DELE &DELE_STATE
>>
>>*RESTORE INDEX ORDER
>>IF NOT EMPTY(M.ORDER_STATE)
>> SET ORDER TO (M.ORDER_STATE)
>>ENDIF
>
>In your code, when I do the recall, it does not use the deleted record
>as the new record?
>thanks...rob
I thought you wanted to reuse the record if one was deleted or empty?