|
is i,j,channel:integer;
7 C$ V d# e4 q5 A, Z1 U! Zdo: S+ e* z, F" {) V3 o& d
% D! t. c& O7 ^3 f/ `) \
channel:=ddeconnect("excel","sheet1");--顯示連線,第一格代表連線到excel文件上,第二格代表連到sheet1這個活頁夾6 N# }/ t1 B& o( d3 N3 H) l N
0 c1 v2 f8 u6 Z
for i:=1 to 列的最大數 loop
+ g0 T& T2 N! N o + {% Z+ a" I# M7 U7 Y$ h
for j:=1 to 欄的最大數 loop
9 R- F4 l. P; H+ A5 ?3 M 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即可,)5 K$ d. \( `( S) @6 B) A
next;9 Z6 v/ j: i, r0 Z9 Q F& x. `
next;1 q" w* ^# m' I8 a8 G
end;
/ ~3 c- p2 P* h
9 ?$ B. c% ^* ]' P6 |) Q% U1 n+ `[ 本帖最后由 fans0390 于 2008-8-26 20:42 编辑 ] |
评分
-
查看全部评分
|