|
|
|
Error: Operator '&' is not defined for type 'TextBox' and string "". คืออะไรคะ |
|
|
|
|
|
|
|
สอบถามการตั้งตัวแปร Array คะ Error: Operator '&' is not defined for type 'TextBox' and string "". คืออะไรคะ
โค้ดส่วนที่ Error คะ
Code (VB.NET)
Dim R_RGrade() As Double = {IIf(U_txtRGrade_1.Text = "", "0", U_txtRGrade_1.Text), IIf(U_txtRGrade_2.Text = "", "0", U_txtRGrade_2), IIf(U_txtRGrade_3.Text = "", "0", U_txtRGrade_3) & _
"", IIf(U_txtRGrade_4.Text = "", "0", U_txtRGrade_4.Text), IIf(U_txtRGrade_5.Text = "", "0", U_txtRGrade_5), IIf(U_txtRGrade_6.Text = "", "0", U_txtRGrade_6) & _
"", IIf(U_txtRGrade_7.Text = "", "0", U_txtRGrade_7.Text), IIf(U_txtRGrade_8.Text = "", "0", U_txtRGrade_8), IIf(U_txtRGrade_9.Text = "", "0", U_txtRGrade_9) & _
"", IIf(U_txtRGrade_10.Text = "", "0", U_txtRGrade_10.Text), IIf(U_txtRGrade_11.Text = "", "0", U_txtRGrade_11), IIf(U_txtRGrade_12.Text = "", "0", U_txtRGrade_12) & _
"", IIf(U_txtRGrade_13.Text = "", "0", U_txtRGrade_13.Text), IIf(U_txtRGrade_14.Text = "", "0", U_txtRGrade_14), IIf(U_txtRGrade_15.Text = "", "0", U_txtRGrade_15) & _
"", IIf(U_txtRGrade_16.Text = "", "0", U_txtRGrade_16.Text) & _
"", IIf(L_txtRGrade_1.Text = "", "0", L_txtRGrade_1.Text), IIf(L_txtRGrade_2.Text = "", "0", L_txtRGrade_2.Text), IIf(L_txtRGrade_3.Text = "", "0", L_txtRGrade_3.Text) & _
"", IIf(L_txtRGrade_4.Text = "", "0", L_txtRGrade_4.Text), IIf(L_txtRGrade_5.Text = "", "0", L_txtRGrade_5.Text), IIf(L_txtRGrade_6.Text = "", "0", L_txtRGrade_6.Text) & _
"", IIf(L_txtRGrade_7.Text = "", "0", L_txtRGrade_7.Text), IIf(L_txtRGrade_8.Text = "", "0", L_txtRGrade_8.Text), IIf(L_txtRGrade_9.Text = "", "0", L_txtRGrade_9.Text) & _
"", IIf(L_txtRGrade_10.Text = "", "0", L_txtRGrade_10.Text), IIf(L_txtRGrade_11.Text = "", "0", L_txtRGrade_11.Text), IIf(L_txtRGrade_12.Text = "", "0", L_txtRGrade_12.Text) & _
"", IIf(L_txtRGrade_13.Text = "", "0", L_txtRGrade_13.Text), IIf(L_txtRGrade_14.Text = "", "0", L_txtRGrade_14.Text), IIf(L_txtRGrade_15.Text = "", "0", L_txtRGrade_15.Text) & _
"", IIf(L_txtRGrade_16.Text = "", "0", L_txtRGrade_16.Text)}
Tag : ASP.NET, VS 2005 (.NET 2.x)
|
|
|
|
|
|
Date :
2012-02-10 23:19:59 |
By :
MinNiie |
View :
1356 |
Reply :
4 |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
คุณจะทำอะไรครับ แล้วทำไจะต้องใช้ & ครับ
|
|
|
|
|
Date :
2012-02-11 06:44:37 |
By :
webmaster |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
คือ อยากจะใช้ข้อมูลใน textbox คะ แล้ว & _ เนื่องจาก textbox มันเยอะคะเลยอยากใส่ ให้มันขึ้นบรรทัดใหม่ จะได้ดูง่ายคะ
|
|
|
|
|
Date :
2012-02-11 09:35:42 |
By :
MinNiie |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ทำได้แล้วนะคะ ขอบคุณคะ
|
|
|
|
|
Date :
2012-02-11 13:49:54 |
By :
MinNiie |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
ตกลงปัญหาคืออะไรครับ
|
|
|
|
|
Date :
2012-02-11 14:45:18 |
By :
webmaster |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Load balance : Server 03
|