天天看點

Asp.net周遊數組執行個體!

String[] Sql_FieldValue = { "a", "b", "c", "d", "e", "f", "g" };//【數組】

        int m_count = Sql_Field.Length; // 數組個數

        String m_field="";

        for (int i = 0; i < m_count; i++)  // ---------- 字段循環

        {

            m_field = m_field + Sql_FieldValue[i];

            Response.Write("第" + i.ToString() + "個取值:" + Sql_Field[i]);

        }  // End_For

        Response.Write("最後取的值是" + m_field;