马上注册,结交更多好友,享用更多功能,让你轻松玩转社区。
您需要 登录 才可以下载或查看,没有账号?立即注册
×
 - (defun XD::Table:GetEntByRow (tb minrow maxrow / celltype el el1 el2 el3
- info n no row
- )
- (if (= (xd::table:type tb) "X")
- (progn
- (setq el (xdrx_block_getentities tb))
- (foreach n el
- (setq celltype (xdrx_object_getxrecord n "MergeCell"))
- (if celltype
- (progn
- (setq no (xdrx_object_getxrecord n "no")
- row (atoi (car no))
- )
- (if (= celltype 0)
- (progn
- (if (and
- (>= row minrow)
- (<= row maxrow)
- )
- (setq el1 (cons n el1))
- )
- (progn
- (if (> row maxrow)
- (setq el3 (cons n el3))
- )
- )
- )
- (progn
- (if (and
- (setq info (xdrx_object_getxrecord n "scope"))
- (>= row (car info))
- (<= row (cadr info))
- )
- (setq el2 (cons n el2))
- )
- )
- )
- (list (reverse el1) (reverse el3) (reverse el2))
- )
- )
- )
- )
- )
- )
|