上一篇主題 :: 下一篇主題 |
發表人 |
內容 |
mp484
註冊時間: 2006-08-08 文章: 84
第 1 樓
|
發表於: 星期日 六月 16, 2013 5:38 pm 文章主題: 請問~陣列的值要從0開始,應該要下哪個指令 |
|
|
Dimesion Arry(5,10)
其中第一個值的範圍是 0~5,另一個是1~10
忘了指令,有誰知道呢? |
|
回頂端 |
|
|
bx1166
註冊時間: 2011-12-06 文章: 273
第 2 樓
|
發表於: 星期日 六月 16, 2013 6:37 pm 文章主題: |
|
|
basic 才有這種區別吧
那是option base 1 ( or 0)
vfp 只有1開始的吧. |
|
回頂端 |
|
|
mp484
註冊時間: 2006-08-08 文章: 84
第 3 樓
|
發表於: 星期日 六月 16, 2013 8:59 pm 文章主題: |
|
|
在VFP裡的確看過此種指令,只是忘了!是可以從0開始的 |
|
回頂端 |
|
|
bx1166
註冊時間: 2011-12-06 文章: 273
第 4 樓
|
發表於: 星期一 六月 17, 2013 11:17 am 文章主題: |
|
|
我真不知道有這個指令
不過我很好奇 什麼原因非得以零開始 ? |
|
回頂端 |
|
|
garfield Site Admin
註冊時間: 2003-01-30 文章: 2158
第 5 樓
|
發表於: 星期一 六月 17, 2013 11:35 am 文章主題: |
|
|
你用 zero-based 去搜尋vfp的help檔,
並沒有說VFP的陣列可以從0開始.
Note
Visual FoxPro arrays are one-based - the first element, row, or column of an array is specified with the number 1. (Arrays in other programming languages may be zero-based; the first element, row, or column of an array is specified with the number 0.) _________________ 利用>>搜尋<<的功能會比問的還要快得到答案. |
|
回頂端 |
|
|
|