Discussion:
VB.NET 之 array 初始化
(时间太久无法回复)
Lin 33
2006-07-31 13:46:02 UTC
Permalink
假設我有個 VB.NET 程式碼如下:

Dim a1() as String = {"A1","B2","C3","D4", ..., "H8", "I9", "J10" }

因一列資料太長, 想把它分成兩列, 如下:

Dim a1() as String = {"A1","B2","C3","D4", ..., _
"H8", "I9", "J10" }

結果 compile 出問題 (BC30203: 必須有識別項), 請問該如何解決?

我是用 .NET 1.1 版.
Allen
2006-08-30 06:48:02 UTC
Permalink
我剛才試了,寫
dim a() as string ={"aa","bbb", _
"ccc", "ddd"}
是可以編譯成功

继续阅读narkive:
Loading...