设为首页收藏本站

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

 找回密码
 注册

QQ登录

只需一步,快速开始

查看: 4675|回复: 3

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

  [复制链接]
发表于 2010-11-25 18:02:48 | 显示全部楼层 |阅读模式
我现在想把表A的内容复制到表B里,试了好多程序,没有一个是对的。我要疯了。请高手们帮帮忙~~
发表于 2010-11-25 18:24:54 | 显示全部楼层
copyRangeTo
  D& T, m) b6 ^- o0 q  m1 k' y/ RUsage:  <path>.copyRangeTo(<listrange>,<object>,<integer1>,<integer2>);  
9 R% Y4 {# ~2 Z8 p" h8 E) l# p7 J4 K" r6 Z; j! u% c- _' a
The method copyRangeTo copies the designated range of the source table designated by <path> into the target table. 9 v5 Q$ R6 ~1 C- [3 y2 `* o' k

3 t. N, T# E! t  [+ E2 F) r; f$ g, [1 f; t4 H
The argument listrange designates the range to be copied.& M6 |& ^" o& w+ Y% Y

  r- w+ X8 ]* \5 H+ y3 y9 aThe argument of data type object designates the target table.
; r* R& W& ]5 U2 h$ V7 R% Z) I
4 m3 w# S" ^8 i+ d' ^0 qThe argument integer1 designates the column in the target table, where Plant Simulation inserts the copied range. 1 {0 O! J* M2 c& {) q) N" n7 ]
6 \) r  M6 u2 d0 g% v8 N, ~# F
The argument integer2 designates the row in the target table, where Plant Simulation inserts the copied range. & J, V1 a  F$ f: f# S
Example:  tableA.copyRangeTo({2,2}..{*,*}, tableB, 1,1);
 楼主| 发表于 2010-11-25 20:23:44 | 显示全部楼层
回复 2# 小李无刀 : X! |+ |  v. O( l6 z* C: p

. I# R9 n% ^, G! z% O* ~2 @: e- T4 t8 E{:3_64:}{:3_64:}
/ \" f* _: D: H, d+ Z5 M+ j- I' w2 K# X. [- P9 O
太感谢你了~~~~~~~~~~~~~~~~~~~~
发表于 2014-7-22 14:57:04 | 显示全部楼层
同感谢!刚好仿真时遇到这个问题
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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

GMT+8, 2026-9-7 19:56 , Processed in 0.017163 second(s), 14 queries .

Powered by Discuz! X3.4 Licensed

© 2001-2017 Comsenz Inc.

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