Xbasic
SQL::ConnectionGenerateNativeTableName Method
Syntax
Table_Name as C = GenerateNativeTableName as C (TypeInfo as SQL::TableInfo)
Arguments
- TypeInfoSQL::TableInfo
SQL::TableInfo
Returns
- Table_NameCharacter
Formatted table name.
Description
Generate a formatted table name suitable for a SQL query in using the current syntax.
Discussion
The GenerateNativeTableName method generates a formatted table name suitable for a SQL query in using the current syntax.
Example
dim conn as SQL::Connection dim ti as SQL::TableInfo dim connString as C dim select_exp as C connString = "{A5API='Access', FileName='c:\program files\a5v8\mdbfiles\alphasports.mdb'}" select_exp = "select Lastname from customer where bill_state_region = 'ma'" if .not. conn.open(connString) ui_msg_box("Error", conn.CallResult.text) end end if if .not. conn.GetTableInfo(ti, "customer") ui_msg_box("Error", conn.CallResult.text) end end if ui_msg_box("Native Type String", conn.GenerateNativeTableName(ti)) conn.close()
See Also