C# TextBox電子郵件驗證
private void TextBox1_Validating(object sender, System.ComponentModel.CancelEventArgs e) |
C# TextBox電子郵件驗證
private void TextBox1_Validating(object sender, System.ComponentModel.CancelEventArgs e) |
C# TextBox只能夠輸入數字及小數點
private void InitializeComponent()
this.TextBox1.KeyPress += new System.Windows.Forms.KeyPressEventHandler(this.TextBoxF_32B_2_KeyPress); |
private void TextBox1_KeyPress(object sender, System.Windows.Forms.KeyPressEventArgs e) |
Crystal Reports
SELECT field01, field02 From Table
報表顯示
欄位一 欄位二 比例
======= ======== ==========
field01 field02 field01 % field02
若遇到field01 及 field02為null值時
此欄位都不會顯示值,user端希望能顯示 "-"
修改成
SELECT ISNULL(field01, 0), ISNULL(field02, 0) FROM Table
則會造成,下列錯誤訊息
Division by zero
再修改 比例 欄位公式
if {field02}=0 then |