DimensionElementComponentAdd issue
Posted: Wed Jan 18, 2017 4:53 pm
Hello all,
I have a strange situation in TI with a very simple dimension, simplying further is not possible.
This code in the Prolog gives an error on the line with DimensionElementInsert, saying that the element that I want to insert already exists as an alias. This is correct.
But if I comment out the DimensionElementComponentAdd code, the Dtype function is honoured and the code continues without error (and does not try to insert the element).
Howcome......... ?
I know that using Dimix = 0 would be better than Dtype @<> 'N' but still, why does this happen ?
I have a strange situation in TI with a very simple dimension, simplying further is not possible.
This code in the Prolog gives an error on the line with DimensionElementInsert, saying that the element that I want to insert already exists as an alias. This is correct.
But if I comment out the DimensionElementComponentAdd code, the Dtype function is honoured and the code continues without error (and does not try to insert the element).
Code: Select all
DimensionElementComponentAdd( 'dim', 'Total', 'A', 1 );
If( Dtype( 'dim', 'd' ) @<> 'N' );
DimensionElementInsert( 'dim', '', 'd', 'N' );
EndIf;
I know that using Dimix = 0 would be better than Dtype @<> 'N' but still, why does this happen ?