|
|
is i,j,channel:integer;" g0 e+ w* S" f0 ~& w' G3 c
do
" D. T! K7 r* p! y
& L) ]: O7 M; f2 x1 f+ ], Wchannel:=ddeconnect("excel","sheet1");--顯示連線,第一格代表連線到excel文件上,第二格代表連到sheet1這個活頁夾
$ f8 e- W( E2 g8 A: D- w7 m3 T! Y: `, X
for i:=1 to 列的最大數 loop, J2 o% F2 q+ J# t
" H+ G* J9 ]7 N
for j:=1 to 欄的最大數 loop
* F4 \( ?6 G n ddepoke(channel,"r"+to_str(i)+"c"+to_str(j),to_str(tablefile[j,i]),1000);--第一個代表將資料送到channel裡(用ddeconnect連線)第二個"r"代表列,+to_str(j)是指從第j列開始+"c"代表欄,+to_str(i)是表示第i欄,to_str(tablefile[j,i]指的是從tablefile第j欄第i列的資料傳送到channel裡,1000代表每毫秒的暫停時間不用管設1000即可,)
1 U& o" N4 ], |7 [ next;
1 ~% d, c p+ S; L8 \) ? next;3 { \& O% E ?8 Y4 g
end;- S8 K$ U% W+ Q2 D0 b; V& J% U
1 R: b4 q$ S$ n. P[ 本帖最后由 fans0390 于 2008-8-26 20:42 编辑 ] |
评分
-
查看全部评分
|