public string ListSchema()
{
string output = "Schema information is not available. Instantiate the Smartreader with a true value to use schema-based features.";
if (schemaAvailable)
{
output = "";
try
{
foreach (System.Data.DataRow myField in schemaTable.Rows)
{
//For each property of the field...
foreach (System.Data.DataColumn myProperty in schemaTable.Columns)
{
//Display the field name and value.
output += myProperty.ColumnName + " = " + myField[myProperty].ToString() + "\r\n";
}
output += "\r\n";
}
}
catch (Exception err)
{
_lastSqlError = err;
}
}
return output;
}