In Release 2007.5 it was possible to change the value of the TRACE_TO_TRACE constraint with the "SetStringValue"-function.
In Release 2007.7 this function results in a CES crash!!!
Attached is an example script using the "SetStringValue"-function. Maybe there exists another method to change this value
but nothing we tried worked so far.
Hi Christian,
The SetStringValue method returns a boolean, so you should not use the "Set" statement. Make this change on line 16:
Setchanged = oconstraint.SetStringValue(CStr(value), CLng(35))There is also a bug, which has been fixed in 7.9, that causes a crash when editing default constraint values. If you modify the constraint before running your script, you will see no crash.
You can work around this bug by deleting the constraint, adding the constraint, then setting the value, like this:
John