|
|
is i,j,channel:integer;
% I7 A5 h' k! \% q3 V+ o$ gdo0 \# l4 S4 B5 ^, Z8 i$ E
# }: A$ z: X @5 f
channel:=ddeconnect("excel","sheet1");--顯示連線,第一格代表連線到excel文件上,第二格代表連到sheet1這個活頁夾1 \- J4 x* Q) R: ]
) ^' F3 Y' t0 f* u
for i:=1 to 列的最大數 loop
% b1 [: W1 \# W/ J! E 8 \# T- s5 q3 s0 K; w
for j:=1 to 欄的最大數 loop
6 Y1 h) O' o8 `- ^ 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即可,)
6 I2 c) k8 Z* s- r' | next;; l" i; p; m l, o6 {
next;' H& f, h+ Q6 K* G) W
end;
- x6 Z: Q+ b7 A/ I
" ?$ ~, T- M; G. D[ 本帖最后由 fans0390 于 2008-8-26 20:42 编辑 ] |
评分
-
查看全部评分
|