I'd probably use pcre functions, but the principle is similar (you only need to use the rex functions if using IC5141): cv=geGetEditCellView() labelPat=pcreCompile("^vref_[123]$") foreach(shape cv~>shapes when(shape~>objType=="label" && pcreExecute(labelPat shape~>theLabel) ; could use rexMatchp here instead shapesUnderneath=dbGetTrueOverlaps(cv list(shape~>xy shape~>xy) t 0) foreach(under shapesUnderneath unless(under~>objType=="label" geSelectFig(under) ) ) ) ) Note the code above is completely untested - this is just to give you an idea. Regards, Andrew.
↧