string

1.   string.IsNullOrEmpty()示例


            if (string.IsNullOrEmpty(strBianH))
            {
                MessageBox.Show("请输入编号!");
                this.textBoxBianH.Focus();
                return;
            }

 

2.   string.Format()示例

       string strSql = string.Format("insert into banj values('{0}','{1}')", strBianH, strBanJ);

      

 

你可能感兴趣的:(String,insert)