|
|
is i,j,channel:integer;6 t- O. C5 E0 C/ I
do
3 R# N9 M% C( z% N
5 H0 W/ `0 D- Y% i. C2 s" _( ochannel:=ddeconnect("excel","sheet1");--顯示連線,第一格代表連線到excel文件上,第二格代表連到sheet1這個活頁夾 j% G, K7 t8 }1 Q: k
1 v$ A+ j" G; b$ b7 d! \# ~
for i:=1 to 列的最大數 loop
- ?2 M# E. W% j/ Z M; ]/ w
{1 ], ~6 ^6 M" ]5 K for j:=1 to 欄的最大數 loop2 ]1 G j: r) D( F A/ V t
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即可,)# x3 [- m5 s9 C h
next;
( c* g$ M0 h) g& j next;
@. F. o3 \* q5 D! ^6 J end;6 p8 q$ m) X' q
) t6 T D! S; b' ?[ 本帖最后由 fans0390 于 2008-8-26 20:42 编辑 ] |
评分
-
查看全部评分
|