利用 dim Arr()as string這樣聲明,一旦賦值後,數組大小也就固定了。若是要改變數組大小,要用redim 命令redim arr(10)數組
加preserve 能夠不清空數組,保持原有數據 preserve redim arr()string