我有一部分代码,它返回非不同的值。
无论如何,我可以使用不同的函数来获得不同的值吗?
代码:
public static Recordset queryTestDirector(string projectName, string query)
{
Recordset result = null;
/*Connect to Test director and pull down all the currently listed QC numbers*/
TDConnection tdConnection;
tdConnection = new TDAPIOLELib.TDConnection();
tdConnection.InitConnection("http://***/qcbin/", "ABC", "");
tdConnection.ConnectProject(projectName, "qc_manager", "");
Command cmd;
cmd = tdConnection.Command as Command;
String qcIDQuery = query;
cmd.CommandText = qcIDQuery;
result = cmd.Execute() as Recordset;
tdConnection.Disconnect();
return result;
}
问题是返回的结果给出了值:A,A,A,A,B,C,D
我只想要A,B,C,D
请建议。