TFormer_SetODBCData
Provide Data · String encodings
Definition
Windows: ANSI; Unix: UTF-8
ERRCODE TFormer_SetODBCData(HTFORM pInstance, LPCSTR pszDSN, LPCSTR pszUser, LPCSTR pszPwd, LPCSTR pszSQLSelect);
Windows only: UTF-16
ERRCODE TFormer_SetODBCDataW(HTFORM pInstance, LPCWSTR pszDSN, LPCWSTR pszUser, LPCWSTR pszPwd, LPCWSTR pszSQLSelect);
Contract
Specifies an SQL-SELECT statement (ODBC) as JobData.
The column names returned by the SQL statement must match the DataField names in the FormLayout.
Returns
ErrOk (0) in case of success, non-zero if an error occurred
Parameters
| Parameter / type | Description |
|---|---|
pInstanceHTFORM |
|
pszDSNLPCSTR / LPCWSTR |
|
pszUserLPCSTR / LPCWSTR |
|
pszPwdLPCSTR / LPCWSTR |
|
pszSQLSelectLPCSTR / LPCWSTR |
SQL-SELECT statement for retrieving data. |