Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Buffered data showing on users machine
Message
De
15/12/2006 10:09:27
Mike Yearwood
Toronto, Ontario, Canada
 
 
À
15/12/2006 09:52:16
Mk Sharma
Shrishti Solutions
Mumbai, Inde
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP1
OS:
Windows XP SP2
Network:
Windows XP
Database:
Visual FoxPro
Divers
Thread ID:
01177968
Message ID:
01177977
Vues:
15
>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')
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform