>>>>>hey larry
>>>>> would you please give me a hand with this.
>>>>> I am having trouble with adding a record in a single user system
>>>>> in vfp50. I never had a problem in clipper.
>>>>> this is what I am doing.
>>>>> In the clicked event of my add button, I have
>>>>> =cursorsetprop(buffering,3)
>>>>> append blank
>>>>> SAVE button
>>>>> =tableupdate(.t.)
>>>>> ABORT button
>>>>> =tablerevert(.t.)
>>>>> My problem is when I abort, it is still adding blank records
>>>>> to the table.
>>>>> It sounds like a buffering problem. I did not have this problem
>>>>> when I coded a system for a multiuser system using table buffering.
>>>>> Why am I getting blank records after I ABORT?
>>>>> thanks
>>>>> rob
>>You may be in a different work area, try specifying the table alias by using the command parameters.....
>>
>>SAVE button
>>=tableupdate(1,.t.,'tablealias')
>>
>>ABORT button
>>=tablerevert(.f.,'tablealias')
>>
>>HTH //:^)
>thanks Larry - I will try this.
>Without using buffering everything is working good, but when I APPEND BLANK,
>the record pointer to going to the last record instead of adding a blank
>record at the end. Do you know why? thanks
I am not sure if I understand your question (you may want to re-phrase it), but I think that the record pointer is going "as far as it can" in buffering mode. The newly appended record is not actually a "real" record on the "real" table until you issue the tableupdate command. (Not 100% sure, but it sounds good) //;^)