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:
Enumerating ODBC Data Sources available on the local computer
SQLGetEnvAttr
..msdn    Add comment     W32 Constants      Translate this page
SQLGetEnvAttr returns the current setting of an environment attribute.
Code examples:
Enumerating ODBC Data Sources available on the local computer
Declaration:
SQLRETURN SQLGetEnvAttr(
     SQLHENV     EnvironmentHandle,
     SQLINTEGER     Attribute,
     SQLPOINTER     ValuePtr,
     SQLINTEGER     BufferLength,
     SQLINTEGER *   StringLengthPtr);
FoxPro declaration:
DECLARE SHORT SQLGetEnvAttr IN odbc32;
    INTEGER   EnvironmentHandle,;
    INTEGER   Attribute,;
    INTEGER @ ValuePtr,;
    INTEGER   BufferLength,;
    INTEGER @ StringLengthPtr

Parameters:
EnvironmentHandle
[Input]

Environment handle.
Attribute
[Input]

Attribute to retrieve.
ValuePtr
[Output]
Pointer to a buffer in which to return the current value of the attribute specified by Attribute.
BufferLength
[Input]
If ValuePtr points to a character string, this argument should be the length of *ValuePtr. If *ValuePtr is an integer, BufferLength is ignored.

StringLengthPtr
[Output]
A pointer to a buffer in which to return the total number of bytes (excluding the null-termination character) available to return in *ValuePtr.
Return value:
SQL_SUCCESS, SQL_SUCCESS_WITH_INFO, SQL_NO_DATA, SQL_ERROR, or SQL_INVALID_HANDLE.
Word Index links for the SQLGetEnvAttr :
Translate this page:
  Spanish    Portuguese    German    French    Italian  
FreeTranslation.com offers instant, free translations of text or web pages.
Created: 2002-03-05 12:20:13
Modified: 2002-03-05 12:22:34
Visited in last 7 days: 20
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 (23.20.64.16)
22 sec.Function: 'ReadFile'
34 sec.Function: 'SQLFetch'
45 sec.Function: 'SHRegEnumUSKey'
1.2 min.Function: 'WinHttpAddRequestHeaders'
1.43 min.Function: 'SetVolumeLabel'
1.82 min.Function: 'UnlockFile'
2.25 min.Function: 'waveInStop'
2.72 min.Function: 'SetJob'
2.95 min.Function: 'WNetGetUser'
3.43 min.Function: 'URLDownloadToFile'
Google
Advertise here!