设为首页收藏本站

最大的系统仿真与系统优化公益交流社区

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3853|回复: 3

[求助] 把一个的内容复制到另一个表格应该用哪条程序??

  [复制链接]
发表于 2010-11-25 18:02:48 | 显示全部楼层 |阅读模式
我现在想把表A的内容复制到表B里,试了好多程序,没有一个是对的。我要疯了。请高手们帮帮忙~~
发表于 2010-11-25 18:24:54 | 显示全部楼层
copyRangeTo ) P& @4 h8 q5 a+ O" ?
Usage:  <path>.copyRangeTo(<listrange>,<object>,<integer1>,<integer2>);  
3 p9 A+ C/ k2 D8 r( v* n6 B5 p
$ k& @+ W8 m& mThe method copyRangeTo copies the designated range of the source table designated by <path> into the target table.
/ n: c; A& f0 Q- q8 o! h0 _
' {- K1 c2 _/ W7 ]! ~8 u6 K5 R( I4 B0 E7 {' T3 V7 ^
The argument listrange designates the range to be copied.2 a0 g# x) F6 o4 J

# Z2 M  A2 S1 SThe argument of data type object designates the target table.) n2 B3 |3 x4 h# y1 p2 m5 }* t

, ~; `1 l# P- R2 X- p* D5 xThe argument integer1 designates the column in the target table, where Plant Simulation inserts the copied range. / M4 T8 Z# N; @0 K) F$ u* A

! I" ]3 |7 H! F5 ]( z& z& k6 gThe argument integer2 designates the row in the target table, where Plant Simulation inserts the copied range.
9 ^! x+ Z/ t8 x* U: o5 ]3 e6 cExample:  tableA.copyRangeTo({2,2}..{*,*}, tableB, 1,1);
 楼主| 发表于 2010-11-25 20:23:44 | 显示全部楼层
回复 2# 小李无刀 * @2 \7 i% s6 d# p& }! ^) O
# d" l) ]  [& ]5 W+ |5 S$ K
{:3_64:}{:3_64:}
- [  \+ H( I% ~0 U' d1 S
( r  S+ j2 ~5 G+ t! C  U+ l太感谢你了~~~~~~~~~~~~~~~~~~~~
发表于 2014-7-22 14:57:04 | 显示全部楼层
同感谢!刚好仿真时遇到这个问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则

QQ|Archiver|手机版|SimulWay 道于仿真   

GMT+8, 2026-1-26 04:12 , Processed in 0.016087 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

快速回复 返回顶部 返回列表