Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Buffering affecting copy and paste?
Message
From
05/11/2008 09:12:00
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
05/11/2008 08:45:17
Barbara Hill
B.L. Hill Applications Limited
Halifax, Nova Scotia, Canada
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 7 SP1
OS:
Windows XP SP2
Network:
Novell 6.x
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01359242
Message ID:
01359796
Views:
46
>Some clarification...
>
>I am using optimistic table buffering and multilocks is on. I can type changes into any field and they remain visible after the cursor leaves the field. If I copy text into the field and leave the field, the copied text disappears. What is different between typing and copying text into a field?
>
>I use TABLEUPDATE() once the grid loses focus.
>
>Thanks

Hi Barbara

The grid doesn't have a lost focus. I'd add save and cancel buttons.

I created a new form, dropped a grid on it. I set the grid's recordsource to members. The form.Load method is this:
SET TALK OFF
SET MULTILOCKS ON
USE MEMBERS IN 0
CURSORSETPROP("Buffering",5,"MEMBERS")
the save button click code is
IF NOT TABLEUPDATE(.T.,.F.,"MEMBERS")
  AERROR(laError)
  MESSAGEBOX("Save failed")
  SUSPEND
ENDIF
The copy/paste works fine. Build such a form, see that it works and use it as a baseline for comparison of your form.
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform