Using Win32 functions in Visual FoxPro Image Gallery
ODBC API
..msdn
SQLAllocEnv
SQLAllocHandle
SQLBindCol
SQLBrowseConnect
SQLConfigDataSource
SQLConnect
SQLCreateDataSource
SQLDataSources
SQLDisconnect
SQLDriverConnect
SQLDrivers
SQLExecDirect
SQLFetch
SQLFreeEnv
SQLFreeHandle
SQLGetConfigMode
SQLGetConnectAttr
SQLGetDiagRec
SQLGetEnvAttr
SQLGetFunctions
SQLGetInfo
SQLGetInstalledDrivers
SQLGetPrivateProfileString
SQLInstallerError
SQLManageDataSources
SQLNativeSql
SQLRowCount
SQLSetConfigMode
SQLSetEnvAttr
SQLTables
Code examples:
Obtaining list of tables stored in an ODBC Data Source
SQLBindCol
..msdn    Add comment     W32 Constants      Translate this page
SQLBindCol binds application data buffers to columns in the result set.
Code examples:
Obtaining list of tables stored in an ODBC Data Source
Declaration:
SQLRETURN SQLBindCol(
    SQLHSTMT     StatementHandle,
    SQLUSMALLINT ColumnNumber,
    SQLSMALLINT  TargetType,
    SQLPOINTER   TargetValuePtr,
    SQLINTEGER   BufferLength,
    SQLLEN *     StrLen_or_Ind);
FoxPro declaration:
DECLARE SHORT SQLBindCol IN odbc32;
    INTEGER StatementHandle,;
    SHORT   ColumnNumber,;
    SHORT   TargetType,;
    INTEGER TargetValuePtr,;
    INTEGER BufferLen,;
    INTEGER StrLen_or_Ind

Parameters:
StatementHandle
[Input]
Statement handle.

ColumnNumber
[Input]
Number of the result set column to bind.

TargetType
[Input]
The identifier of the C data type of the *TargetValuePtr buffer.

TargetValuePtr
[Deferred Input/Output]
Pointer to the data buffer to bind to the column. SQLFetch and SQLFetchScroll return data in this buffer.

BufferLength
[Input]
Length of the *TargetValuePtr buffer in bytes.

StrLen_or_IndPtr
[Deferred Input/Output]
Pointer to the length/indicator buffer to bind to the column. SQLFetch and SQLFetchScroll return a value in this buffer.
Return value:
SQL_SUCCESS (0), SQL_SUCCESS_WITH_INFO, SQL_ERROR (-1), or SQL_INVALID_HANDLE (-2).
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2003-05-28 09:07:01
Modified: 2003-05-28 09:10:28
Visited in last 7 days: 14
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.38), the Open Source standard SQL database, AceHTML Freeware Version 4, freeware HTML Editor of choice.   Hosted by Korax Online Inc.
Last Topics Visited (54.224.43.96)
13 sec.Function: 'WNetGetLastError'
39 sec.Function: 'SQLFreeEnv'
51 sec.Function: 'sndPlaySound'
1.03 min.Function: 'waveInPrepareHeader'
1.22 min.Function: 'SetDoubleClickTime'
1.42 min.Function: 'WNetEnumResource'
1.6 min.Function: 'waveInReset'
1.97 min.Function: 'WNetCloseEnum'
2.15 min.Function: 'SetEnvironmentVariable'
2.33 min.Function: 'SetDlgItemInt'
Google
Advertise here!