随风而去

博客园 首页 新随笔 联系 订阅 管理
int iIndex;
   TextBox txt5, txt6, txt7, txt8, txt9, txt10;
   
for (int i=1; i<=8; i++)
 
{
      
switch(1)
          
{
                        
case 1: iIndex = 5break;
                        
case 2: iIndex = 11break;
                        
case 3: iIndex = 17break;
                        
case 4: iIndex = 24break;
                        
case 5: iIndex = 27break;
                        
case 6: iIndex = 55break;
                        
case 7: iIndex = 41break;
                        
case 8: iIndex = 47break;
                    }

                    txt5 
= (TextBox)LMFindControl("txtF"+(iIndex).ToString(), this);
                    txt6 
= (TextBox)LMFindControl("txtF"+(iIndex+1).ToString(), this);
                    txt7 
= (TextBox)LMFindControl("txtF"+(iIndex+2).ToString(), this);
                    txt8 
= (TextBox)LMFindControl("txtF"+(iIndex+3).ToString(), this);
                    txt9 
= (TextBox)LMFindControl("txtF"+(iIndex+4).ToString(), this);
                    txt10 
= (TextBox)LMFindControl("txtF"+(iIndex+5).ToString(), this);
                }
有八行数字,每行的计算公式一样,每行的数都是按同样的规律进行排列的,各行之间没有一定的规律.
posted on 2007-05-22 11:19  Aaron_Zhang  阅读(271)  评论(0)    收藏  举报