标题:flag 是什么意思
取消只看楼主
wsq1168
Rank: 1
等 级:新手上路
帖 子:72
专家分:0
注 册:2007-8-24
 问题点数:0 回复次数:0 
flag 是什么意思
flag 是什么意思

private int ValidateData()
        {
            int flag = 0;
            if (textBox1.Text == "")
            {
                textBox1.Focus();
                errorProvider1.SetError(textBox1, "请输入第一个名字");
                flag = 1;
            }
            if (textBox2.Text == "")
            {
                textBox2.Focus();
                errorProvider1.SetError(textBox2, "请输入第二个名字");
                flag = 1;
            }
            if (dateTimePicker1.Value > DateTime.Now)
            {
                dateTimePicker1.Focus();
                errorProvider1.SetError(dateTimePicker1, "请输入日起,它必须比现在日期早");
                flag = 1;
            }
            if (textBox3.Text == "")
            {
                textBox3.Focus();
                errorProvider1.SetError(textBox3, "请输入地质");
                flag = 1;
            }
            if (textBox4.Text == "")
            {
                textBox4.Focus();
                errorProvider1.SetError(textBox4, "请输入原因");
                flag = 2;
            }
            return flag;
        }

flag 是什么意思
搜索更多相关主题的帖子: flag 意思 
2007-11-24 21:21



参与讨论请移步原网站贴子:https://bbs.bccn.net/thread-188140-1-1.html




关于我们 | 广告合作 | 编程中国 | 清除Cookies | TOP | 手机版

编程中国 版权所有,并保留所有权利。
Powered by Discuz, Processed in 2.210424 second(s), 8 queries.
Copyright©2004-2025, BCCN.NET, All Rights Reserved