在嵌套循环中声明变量

在嵌套循环中声明变量

本文介绍了在嵌套循环中声明变量的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

变量EPF的值不在netsd循环中分配 

Value of variable EPF does not assign within the netsd loop 

Int k = 0;

Int k=0;

Int g = 0;

Int g=0;

String EPF;

String EPF;

while(rd_1.Read())   ;                    
//读取员工

while(rd_1.Read())                      // read employee

       {
EPF =(RD_1 ["电子邮件与QUOT]。的ToString());

                        EPF = (rd_1["Email"].ToString());

而(rd.Read()) {

}

                                                                       }

}

ķ++;

{
EPF =(RD_1 ["电子邮件与QUOT]。的ToString());

                        EPF = (rd_1["Email"].ToString());

而(rd.Read()) {       

                                    
if(rd [" FileSize"]。ToString()!=" 0"  
){

                                   if ( rd["FileSize"].ToString() != "0"  ) {





这篇关于在嵌套循环中声明变量的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-23 06:09