可能重複:
VB Using colons to put two statements on same lineExcel的VBA結腸
我有以下聲明在Excel VBA
Public Const cdbArea = 1: Public Const cdbDist = 2: Public Const cdbChange1 = 4: Public Const cdbChange2 = 5: Public Const cdbTR = 5:
Public Const crbArea = 1: Public Const crbDist = 2: Public Const crbTerr = 3: Public Const crbChange1 = 4: Public Const crbTR = 5:
Public Const cdbWeek1 = 4
乍一看,冒號看起來像分離,但我從來沒有使用過這種語法。
冒號是什麼?