如何在DOOR中将一行从一个属性复制到另一属性

时间:2019-10-23 14:18:30

标签: ibm-doors

我正在尝试从DOORS的一个属性复制一行并将该行写入DOORS的另一属性。

1 个答案:

答案 0 :(得分:0)

直接或直接来自DXL手册

Object o = current // might be set in a loop

Regexp line = regexp2 ".*"
string sTextValue = o."Object Text"""

string sLastLine = ""
while (!null sTextValue && line sTextValue) {
    sLastLine = sTextValue[match 0]
    sTextValue = sTextValue [end 0 + 2:]
}
print "->" sLastLine "<-\n"
o."Other Attribute" = sLastLine