TFormer_GetFirstDSParameterIt
Repository Access · String encodings
Definition
Windows: ANSI; Unix: UTF-8
HDSPARAMETER_ITERATOR TFormer_GetFirstDSParameterIt(HTFORM pInstance, LPCSTR pszProjectName, LPCSTR pszDatasourceName, ERRCODE * peCode);
Windows only: UTF-16
HDSPARAMETER_ITERATOR TFormer_GetFirstDSParameterItW(HTFORM pInstance, LPCWSTR pszProjectName, LPCWSTR pszDatasourceName, ERRCODE * peCode);
Contract
Returns an iterator pointing to the first DataSourceParameter of the specified DataSource in the specified Project.
Creates a new DataSourceParameter iterator and sets its position to the first DataSourceParameter in the DataSource specified by pszDatasourceName. To enumerate DataSourceParameters of a global DataSource, set pszProjectName to NULL or an empty string. To retrieve the name of the DataSourceParameter call TFormer_DSParameterItGetName.
Returns
Iterator in case of success, NULL in case of an error (check peCode in this case)
Parameters
| Parameter / type | Description |
|---|---|
pInstanceHTFORM |
|
pszProjectNameLPCSTR / LPCWSTR |
|
pszDatasourceNameLPCSTR / LPCWSTR |
|
peCodeERRCODE * |
|
Note
Release the iterator after use with TFormer_FreeDSParameterIt! Memory leaks may occur otherwise.