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 / typeDescription
pInstanceHTFORM


The TFORMer instance provided by a previous call to TFormer_Init

pszDSNLPCSTR / LPCWSTR


DSN of the ODBC connection

pszUserLPCSTR / LPCWSTR


User-Name for ODBC connection (may be NULL or an empty string)

pszPwdLPCSTR / LPCWSTR


Password for the ODBC connection (may be NULL or an empty string)

pszSQLSelectLPCSTR / LPCWSTR

SQL-SELECT statement for retrieving data.

Search documentation

Search in
More scopes
Additional scopes

All contents