Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Adding a record
Message
From
31/10/1997 12:01:34
 
 
To
31/10/1997 10:50:41
General information
Forum:
Visual FoxPro
Category:
Other
Title:
Miscellaneous
Thread ID:
00057479
Message ID:
00057613
Views:
28
>>>>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
>>>
>>>Robert-
>>>a little off subject but possibly relevant...
>>>I have noticed in your code samples that you issue CURSORSETPROP quite often when I would see it unnecessary. Cursor buffermode can be set on the table level from the DE, or on the form level in the form's property sheet. The only time you should have to issue CURSORSETPROP is when you are opening a table programmatically, or you want to temporarily set the buffermode before changing it back. Just hoping to make your code a little simpler...
>>
>>Hi Erik and thanks for the good news. I found the place were you set
>>the buffermode on the form's property sheet. But I am not sure
>>how this changes my code. Do I write the sams code, but leave out
>>the cursorsetprop()?.. :)
>
>yup. As long as you have the buffermode set right initially...
thanks Erik
Robert Keith
Independent Developer
San Antonio, Texas
E-mail address:
rebelrob1@yahoo.com
Previous
Reply
Map
View

Click here to load this message in the networking platform