※ 引述《bbsking (king)》之銘言:
: 我輸入一筆資料 想讓他 按了按鈕後 存入動態陣列內
: 而且還能印出在text上 不曉得該怎麼寫呢
Dim Index As Integer '放在模組開頭
Private Sub Command1_Click()
Redim Preserve mydata(index)
mydata(index)=資料
If Text1.Text = "" Then
Text1.Text = 資料
Else
Text1.Text = Text1.Text & vbCrLf & 資料
End If
index = index+1
End Sub
--
VB 程式設計 倉木麻衣 PTT 星爺板 行列輸入法
======================================================
Visual_Basic MaiKuraki Stephen Array
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 210.58.156.43