|
|
is i,j,channel:integer;: H8 q/ U4 z0 P8 a9 d
do+ I* G5 D6 |" d
/ z& m4 E. j3 I! f0 f; h9 K$ Zchannel:=ddeconnect("excel","sheet1");--顯示連線,第一格代表連線到excel文件上,第二格代表連到sheet1這個活頁夾
) E9 h2 w" M8 c# @* A; }0 w1 ^/ z ^
' y2 o* k0 ?: Q$ m# Mfor i:=1 to 列的最大數 loop) m* Y- B- X" D) E9 v8 X1 t
' Z; [4 V4 b0 Z1 X' t6 z2 b for j:=1 to 欄的最大數 loop* M9 d7 Q; A6 |0 [6 k, q
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即可,)4 s8 B9 L( \% W, i. S2 Z3 ~4 e- ^- Z
next;
B x& A" ^0 u* _$ G4 x next;% W5 O; x+ J. ?" a Y/ C# {
end;
# d( `& n) o7 l9 W
- G& t- i7 D9 ] A[ 本帖最后由 fans0390 于 2008-8-26 20:42 编辑 ] |
评分
-
查看全部评分
|