设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 3877|回复: 3

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

  [复制链接]
发表于 2010-11-25 18:02:48 | 显示全部楼层 |阅读模式
我现在想把表A的内容复制到表B里,试了好多程序,没有一个是对的。我要疯了。请高手们帮帮忙~~
发表于 2010-11-25 18:24:54 | 显示全部楼层
copyRangeTo . [& {- |% j. Z6 t
Usage:  <path>.copyRangeTo(<listrange>,<object>,<integer1>,<integer2>);  ! z9 ^9 A- p$ Q( R  U- P) A3 E

  U; v( M  O: ]9 x! m  ~The method copyRangeTo copies the designated range of the source table designated by <path> into the target table.
, q# u& b- H. a3 s6 c( c5 j. H: m$ j# H9 F/ Z7 G4 s' [/ D

3 @, R2 u" |1 CThe argument listrange designates the range to be copied.- X$ s* \- g! v1 c! Z" s
' }/ r7 z4 Y! K% G
The argument of data type object designates the target table.
, f' h% T+ n1 x. u2 Q! |1 ^; V( }
3 E' @3 S/ x8 h) tThe argument integer1 designates the column in the target table, where Plant Simulation inserts the copied range. " @4 w' c6 f5 T0 q% M; `& X3 A

" e1 [0 W+ k- t- L) e4 {' |The argument integer2 designates the row in the target table, where Plant Simulation inserts the copied range. ( ?0 Q( l6 [9 y, W
Example:  tableA.copyRangeTo({2,2}..{*,*}, tableB, 1,1);
 楼主| 发表于 2010-11-25 20:23:44 | 显示全部楼层
回复 2# 小李无刀 3 f' f* y% N. A0 }8 V
( q: q8 |$ L" s( p2 x
{:3_64:}{:3_64:}
6 ?- Q/ I/ T4 i/ G- {8 Y% C7 k1 B. M: p0 C. @, n; ?4 X4 m! G6 E
太感谢你了~~~~~~~~~~~~~~~~~~~~
发表于 2014-7-22 14:57:04 | 显示全部楼层
同感谢!刚好仿真时遇到这个问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-1-31 17:59 , Processed in 0.018466 second(s), 15 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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