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
JetPrepareUpdate
..msdn    Add comment     W32 Constants      Translate this page
This is the first operation in performing an update, for the purposes of inserting a new record or replacing an existing record with new values.
Code examples:
Extensible Storage Engine class library
Declaration:
JET_ERR JET_API JetPrepareUpdate(
  __in          JET_SESID sesid,
  __in          JET_TABLEID tableid,
  __in          unsigned long prep
);
FoxPro declaration:
DECLARE INTEGER JetPrepareUpdate IN esent;
    INTEGER sesid,;
    INTEGER tableid,;
    LONG prep
Parameters:
sesid
The session to use for this call.

tableid
The cursor to use for this call.

prep
The options that can be used to prepare for an update
Return value:
Returns the JET_ERR datatype with a predefined return code.
Usage:
LOCAL nPrepFlag

nPrepFlag = IIF(m.lInsert, JET_prepInsert, JET_prepReplace)

THIS.errorno = JetPrepareUpdate(THIS.jetsessionid,;
    THIS.jettableid, nPrepFlag)
My comment:
Updates are done by calling JetPrepareUpdate, then calling JetSetColumn or JetSetColumns zero or more times and finally by calling JetUpdate to complete the operation.
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2008-01-12 21:08:36
Modified: 2008-01-12 21:11:25
Visited in last 7 days: 8
User Contributed Notes:
There are no notes on this subject.


Copyright 2001-2017 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.6.37), 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.79.128)
10 sec.
Function group: 'Window'
23 sec.Function: 'GetRegionData'
35 sec.Function: 'mixerGetControlDetails'
45 sec.Function: 'mmioRead'
55 sec.Function: 'GetCurrentProcessId'
1.12 min.Function: 'JetUpdate'
1.3 min.Function: 'SHFormatDrive'
1.48 min.
Function group: 'Simple MAPI'
1.68 min.Function: 'QueryPerformanceCounter'
1.87 min.Function: 'CreateSemaphore'
Google
Advertise here!