<?xml:namespace prefix = o ns = "urn:schemas-microsoft-com:office:office" />
</span></span>
</span></span>
</span>
!table
</span>
!version 300
</span>
!charset WindowsSimpChinese
</span>
</span>
Definition Table
</span>
Type NATIVE Charset "WindowsSimpChinese"
</span>
Fields 2
</span>
Char (10) Index 1 ;
</span></span>
Char (10) ;
</span></span>
</span>
</span></span>
</span>
";
</span></span>
</span>
MapInfo.Data.Table table=MapInfo.Engine.Session.Current.Catalog.GetTable(_findLayerName);
</span>
</span>
)
</span>
{
</span>
MIDataReader tr;
</span>
MIConnection();
</span>
MICommand tc=con.CreateCommand();
</span>
tc.CommandText="select "+_findColumnName+" from "+_findLayerName;
</span>
con.Open();
</span>
tr=tc.ExecuteReader();
</span>
(tr.Read())
</span>
{
</span>
DropDownList1.Items.Add(tr.GetString(0));
</span>
}
</span>
tc.Cancel();
</span>
tc.Dispose();
</span>
tr.Close();
</span>
con.Close();
</span>
}
</span>
</span>
</span>
</span></span>
</span></span>
</span>
!table
</span>
!version 300
</span>
!charset WindowsSimpChinese
</span>
</span>
Definition Table
</span>
Type NATIVE Charset "WindowsSimpChinese"
</span>
Fields 2
</span>
Char (10) Index 1 ;
</span></span>
Char (10) ;
</span></span>
</span>
</span></span>
</span>
";
</span></span>
</span>
MapInfo.Data.Table table=MapInfo.Engine.Session.Current.Catalog.GetTable(_findLayerName);
</span>
</span>
)
</span>
{
</span>
MIDataReader tr;
</span>
MIConnection();
</span>
MICommand tc=con.CreateCommand();
</span>
tc.CommandText="select "+_findColumnName+" from "+_findLayerName;
</span>
con.Open();
</span>
tr=tc.ExecuteReader();
</span>
(tr.Read())
</span>
{
</span>
DropDownList1.Items.Add(tr.GetString(0));
</span>
}
</span>
tc.Cancel();
</span>
tc.Dispose();
</span>
tr.Close();
</span>
con.Close();
</span>
}
</span>
</span>
</span>