select陳述句如下:
select 姓名 from 學生表
select結果:
張三
李四
王五
我想把這個結果顯示在表單的一個文本框中,文本框顯示內容如下:
張三,李四,王五
請問這個文本框的代碼怎么寫啊?
uj5u.com熱心網友回復:
select 姓名 from 學生表 into array aTempcc = ''
for ii = 1 to _Tally
cc = cc + ',' + aTemp[ii]
endfor
thisform.text1.Value = substr(cc, 3)
uj5u.com熱心網友回復:
select 姓名 from 學生表 into array aTempcc = atemp(1)
for ii = 2 to _Tally
cc = cc + ',' + aTemp[ii]
endfor
thisform.text1.Value = cc
uj5u.com熱心網友回復:
select 姓名 from 學生表 into array aTempcc = atemp(1)
for ii = 2 to _Tally
cc = cc + ',' + aTemp(ii)
endfor
thisform.text1.Value = cc
uj5u.com熱心網友回復:
只能這樣了,要寫以上代碼轉載請註明出處,本文鏈接:https://www.uj5u.com/shujuku/99576.html
標籤:VFP
