dbRowRegionMatchesSpec
dbRowRegionMatchesSpec(
d_rowRegionId
)
=> t / nil
Description
Checks whether the rowRegion matches its rowRegionSpec.
A rowRegion does not matches its rowRegionSpec when one of the following is true:
- The rowRegionSpec is modified after the rowRegion is created. In this case, the rowRegion should be rebuilt to match it with the new rowRegionSpec.
- The row region is modified out of context. For example, one of its rows is modified in an older version of Virtuoso.
Arguments
Value Returned
Examples
Checks whether the rowRegion matches its rowRegionSpec.
;; Creating rowRegion along with the corresponding rowRegionSpec
spec = dbCreateRowRegionSpec(cv "RRS" 1100 list(newRow newRow))
rowRegion = dbCreateRowRegion(cv "rowRegion" "RRS" point t "MXR90")
;; Check if the rowRegion matches spec.
dbRowRegionMatchesSpec(rowRegion)
\t t
;; rowRegion matches the rowRegionSpec.
dbGetRowRegionRowRegionSpec(rowRegion)~>height = 2200
dbRowRegionMatchesSpec(rowRegion)
\t nil
;; rowRegion does not matches the spec because rowRegionSpec has been modified.
;; Rebuild rowRegion
dbRebuildRowRegion(rowRegion)
;; Check if the rowRegion matches spec.
dbRowRegionMatchesSpec(rowRegion)
t t
;; rowRegion matches the spec again after it is rebuilt
Related Topics
Placement Database Access Functions
Return to top