Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
Destroy and Unload
Message
De
11/11/2008 00:30:07
Lutz Scheffler
Lutz Scheffler Software Ingenieurbüro
Dresden, Allemagne
 
 
À
10/11/2008 09:25:05
Jay Johengen
Altamahaw-Ossipee, Caroline du Nord, États-Unis
Information générale
Forum:
Visual FoxPro
Catégorie:
Gestionnaire d'écran & Écrans
Versions des environnements
Visual FoxPro:
VFP 9 SP2
OS:
Vista
Network:
Windows 2008 Server
Database:
MS SQL Server
Divers
Thread ID:
01360872
Message ID:
01361016
Vues:
26
Jay,

the problem is TABLEUPDATE(.T.)

This will update the current record only, return True, but other records will be uncommitted.
IOW
SELECT Covr
IF CURSORGETPROP( 'Buffering' )>1 AND !TABLEUPDATE( .T. ,.T.)
	TABLEREVERT( .T. )
ENDIF 

Agnes


>The order of events when closing a form is:
>
>FORM.QUERYUNLOAD
>FORM.DESTROY
>FORM.CONTAINER.DESTROY
>FORM.CONTAINER.COMMAND.DESTROY
>FORM.UNLOAD
>
>We have code in the UNLOAD as follows:
>
>SELECT Covr
>IF CURSORGETPROP( 'Buffering' ) > 1 AND ! TABLEUPDATE( .T. )
>	TABLEREVERT( .T. )
>ENDIF 
>CURSORSETPROP("Buffering",1)
>
>But we are getting an error in the DESTROY that there are uncommitted changes to Covr. What happens by default in the DESTROY that would cause this?
Words are given to man to enable him to conceal his true feelings.
Charles Maurice de Talleyrand-Périgord

Weeks of programming can save you hours of planning.

Off

There is no place like [::1]
Précédent
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform