Hello, I am converting our existing .NET ultralite based app to run on UWP. I am just learning the Ultralite for WinRT API...so please forgive this very basic question! I am using version 17 developer edition of SQL Anywhere and Visual Studio 2017. I am using the SAP Docs to learn the API. I am able to connect to a database and select data from a table into a ResultSet object. I am attempting to get the column names using a ResultSetSchema object. The call I'm using (GetColumnName) always returns an empty string. Does this not work or is there something else I need to do? Or maybe it does not work like I think it works? Here's a snip of code I'm using - again, very basic:
Thanks for the help! Paula asked 18 Oct '17, 14:52 Paula |
The second parameter is a value from the ColumnNameType enumeration not the column type. The column name types are documented here: http://dcx.sap.com/index.html#sqla17api/en/html/82669a9a6ce210149dd4ad0a20171b83.html answered 18 Oct '17, 15:44 Chris Keating Thank you! I just assumed type was the type of the column. Works like a charm.
(18 Oct '17, 16:50)
Paula
|