|
|
is i,j,channel:integer;5 m* `2 x S) y
do0 J0 a. K2 B$ L1 s6 i
/ N5 Z& K+ q9 T6 V8 Qchannel:=ddeconnect("excel","sheet1");--顯示連線,第一格代表連線到excel文件上,第二格代表連到sheet1這個活頁夾: r! g3 b. ?/ W5 s
) k6 a0 P, G1 r2 d6 E+ x
for i:=1 to 列的最大數 loop$ W4 W/ M0 h1 l& y9 r! L
5 x9 e: b- [2 G7 z; B2 }
for j:=1 to 欄的最大數 loop
: }' Z( u/ a" i 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即可,)) Y' @( c. \" P: h
next;" M" x* r) X P7 t
next;
. E4 Y6 h& U5 e7 C& o end;
; F$ F. H$ a5 R0 X0 l6 R4 ^8 _ |8 }6 z1 J$ N& A
[ 本帖最后由 fans0390 于 2008-8-26 20:42 编辑 ] |
评分
-
查看全部评分
|