Dear sir:
I have face a question that I made a program for data system, due to some resion, I don't want to use ADO.NET and Access MDB, I have made a struct as following:
struct tablename
{
public string g1;
public string g2;
public double g3;
public double g4;
public tablename(string m_g1,string m_g2,double m_g3, double m_g4,
{
g1=m_g1;
g2=m_g2;
g3=m_g3;
g4=m_g4;
}
public static tablename[] table{
new tablename("ISO9600","YES",56,512
new tablename("ISO9610","67S",321,25
new tablename("ISO9650","SDS",56,345
new tablename("ASME","KLGFGFDD",3556,5
}
I made the talbe in struct, and one table to one struct, there are maybe 200 or more tables, each table has 300 records or more. these tables are all in a DataLib class.
The problem is that how can i find the specified table and then find the specified data in
tablename[]
?
For exmaple:
String xxx; string yyy;
I want to find the table which named equal xxx, and find table.g2=yyy in xxx[], and enumator each fileds which unknown? how can I do this?
Thanks.
david jang