Using Win32 functions in Visual FoxPro Image Gallery
Extensible Storage Engine (ESE, Jet Blue)
JetAddColumn
JetBeginSession
JetBeginTransaction
JetCloseDatabase
JetCloseTable
JetCommitTransaction
JetCreateDatabase
JetCreateInstance
JetCreateTable
JetDeleteTable
JetDetachDatabase
JetEndSession
JetGetColumnInfo
JetGotoBookmark
JetInit
JetMove
JetOpenTable
JetPrepareUpdate
JetRetrieveColumn
JetRollback
JetSetColumn
JetTerm
JetUpdate
Code examples:
Extensible Storage Engine class library
JetEndSession
..msdn    Add comment     W32 Constants      Translate this page
Ends the session, and cleans up and deallocates any resources associated with the specified session.
Code examples:
Extensible Storage Engine class library
Declaration:
JET_ERR JET_API JetEndSession(
  __in          JET_SESID sesid,
  __in          JET_GRBIT grbit
);
FoxPro declaration:
DECLARE INTEGER JetEndSession IN esent;
    INTEGER sesid,;
    INTEGER grbit
Parameters:
sesid
The session to end. Associated resources are released when the session ends.

grbit
Reserved.
Return value:
This function returns the JET_ERR datatype with a predefined return code.
Usage:
LOCAL nInstance, cInstanceName, nSession
cInstanceName="JetBlue"
STORE 0 TO nInstance, nSession

= JetCreateInstance(@nInstance, m.cInstanceName)
= JetInit(@nInstance)

= JetBeginSession(nInstance, @nSession, 0, 0)

* ...after doing some useful stuff...
= JetEndSession(nSession, 0)
= JetTerm(nInstance)
My comment:
This API will rollback any open transactions (not committed to level 0). Also all cursors associated with this session, and any sort tables that have been created or opened will be cleaned up.

See also: JetBeginSession
Word Index links for the JetEndSession :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2008-01-08 17:56:42
Modified: 2008-01-08 18:01:21
Visited in last 7 days: 8
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2014 News2News, Inc. Before reproducing or distributing any data from this site please ask for an approval from its owner. Unless otherwise specified, this page is for your personal and non-commercial use. The information on this page is presented AS IS, meaning that you may use it at your own risk. Microsoft Visual FoxPro and Windows are trade marks of Microsoft Corp. All other trademarks are the property of their respective owners. 

Privacy policy
Credits: PHP (4.4.9), an HTML-embedded scripting language, MySQL (5.1.68), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.81.109.37)
1.58 min.Function: 'HeapFree'
4.83 min.Example: 'How to print FoxPro form'
4.22 hrs.Example: 'How to access a file using not its name but an alias (hard link)'
4.23 hrs.Function: 'NetMessageNameDel'
Function group: 'Network Management'
4.25 hrs.Example: 'GDI+: how to make VFP controls visually shake and shudder'
4.29 hrs.Function: 'WSAStartup'
4.34 hrs.Function: 'CryptCreateHash'
14.34 hrs.Example: 'Using Video Capture: displaying on FoxPro form frames and previewing video obtained from a digital camera'
Google
Advertise here!