Advantage Client Engine
Sets the type of character data used in rowsets
UNSIGNED32 |
AdsStmtSetTableCharType( ADSHANDLE hStatement, UNSIGNED16 usCharType ) |
hStatement (I) |
Handle of an SQL statement created by a call to AdsCreateSQLStatement. |
usCharType (I) |
Type of character data used in returned rowsets. Options are ADS_ANSI and ADS_OEM. This indicates the type of character data to be used in the rowset. For compatibility with DOS-based CA-Clipper applications, ADS_OEM should be specified. |
The default value for newly created statement handles is ADS_ANSI.
If the statement handle was created on a database connection, this setting is ignored when accessing the database tables. The usCharType is obeyed on the free tables.
If the statement handle was created on a free connection, the usCharType setting is always obeyed
Note There cannot be an open cursor associated with the statement when this API is called. If an open cursor exists close it using AdsCloseTable before calling this API.