啥意思
没明白List<string> list = new List<string>();
foreach(DataRow row in dt.Rows)
{
list.Add(row["ID"].ToString());
}
string[] ids = list.ToArray();
没明白List<string> list = new List<string>();
foreach(DataRow row in dt.Rows)
{
list.Add(row["ID"].ToString());
}
string[] ids = list.ToArray();
如果一行有多个字段
可以做个结构,然后保存到结构数组里
public struct PeopleFlux
{
int ID;
string Name;
}先获取记录数len然后
PeopleFlux n=new PeopleFlux[len];
for赋值
2: 用for循环显示,摄像头1 摄像头2 摄像头3 摄像头4 摄像头5 摄像头6