Hi,
I have a set list of reports... ReportA, ReportB, ReportC.
I query a database table and want to check if any of the above reports are returned in the query result.
What is the best way to do this? Do I use an ENUM or ArrayList?
e.g. currently have an enum...
enum Reports<br/>
{ <br/>
ReportA,<br/>
ReportB,<br/>
ReportC<br/>
}
string reportreturned = "ReportA";
So I want to check if reportreturned variable exists in the enum.
Is this possible??
Thanks.
View the full article
I have a set list of reports... ReportA, ReportB, ReportC.
I query a database table and want to check if any of the above reports are returned in the query result.
What is the best way to do this? Do I use an ENUM or ArrayList?
e.g. currently have an enum...
enum Reports<br/>
{ <br/>
ReportA,<br/>
ReportB,<br/>
ReportC<br/>
}
string reportreturned = "ReportA";
So I want to check if reportreturned variable exists in the enum.
Is this possible??
Thanks.
View the full article