循環是否可以遍歷一個表,然後從每行FoxPro 9.0中通過表
=================
Contracts.dbf
=================
P01
C04
CH45
T31
counter = 1
Do While 1 < 4
SomethingSomethingSomething
counter = counter + 1
ENDDO
所以,當計數器= 1環形折返P01,計數器= 2回報C04等檢索值。
循環是否可以遍歷一個表,然後從每行FoxPro 9.0中通過表
=================
Contracts.dbf
=================
P01
C04
CH45
T31
counter = 1
Do While 1 < 4
SomethingSomethingSomething
counter = counter + 1
ENDDO
所以,當計數器= 1環形折返P01,計數器= 2回報C04等檢索值。
試試這個:
SELECT contracts
SCAN
x = contracts.fieldname1
MESSAGEBOX("Value -> " + x)
ENDSCAN
SELECT Contracts
SCAN
m.Counter = 1
m.Something = ""
DO WHILE m.Counter <= FCOUNT()
m.Something = EVAL(FIELD(m.Counter))
m.Counter = m.Counter +1
ENDDO
ENDSCAN
呃,這是一個相當模糊的... ...問題。那麼,你想循環一個表並返回一個字段值? –