Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
Buffered data showing on users machine
Message
From
15/12/2006 10:09:27
Mike Yearwood
Toronto, Ontario, Canada
 
 
To
15/12/2006 09:52:16
Mk Sharma
Shrishti Solutions
Mumbai, India
General information
Forum:
Visual FoxPro
Category:
Forms & Form designer
Environment versions
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Miscellaneous
Thread ID:
01177968
Message ID:
01177977
Views:
14
>i am trying to use buffering with private data session.
>
>some times when i make entries on server and users machine at same time, my data appeare in users grid when user scrolling in grid with arrow/pagedown/pageup.
>
>should i use cursorsetprop in load event of the form or in command buttons.
>
>below is the set commands i am using in load event of the form
>
>
>
>Set Status Bar Off
>Set Talk Off
>Set Century On
>Set Date Ital
>Set Echo Off
>Set Deleted On
>Set Safety Off
>Set Exclusive Off
>Set Autosave On
>Set Escape Off
>Set Multilocks On
>Set Reprocess To Automatic
>
>
>
>i am using cursorsetprop in command buttons.
>
>in command button "ADD" and "EDIT"
>
>
>
>cursorsetprop("buffering",5,'inward')
>cursorsetprop("buffering",5,'inward1')
>
>
No!!! Set buffering in form load!



>
>in command button "SAVE"
>
>
>
begin transaction
>sele inward
m.llSuccess = tableupdate(.f.,.t.)

sele inward1
m.llSuccess = m.llSuccess and tableupdate(.t.,.t.)

if m.llSuccess
end transaction
else
rollback
endif

*Don't do this!
>cursorsetprop("buffering",1,'inward')
>cursorsetprop("buffering",1,'inward1')
>
>
>
>in command button "CANCEL"
>
>

>
>sele inward
>tablerevert(.f.)
>sele inward1
>tablerevert(.t.)
*Don't do this
*cursorsetprop("buffering",1,'inward')
*cursorsetprop("buffering",1,'inward1')
Previous
Next
Reply
Map
View

Click here to load this message in the networking platform