| Quintiq file version 2.0 | 
| #parent: #root | 
| Method AddItemForExport ( | 
|   String uri, | 
|   String name, | 
|   String inhierarchyof | 
| ) | 
| { | 
|   Description: 'Verify duplicate then append Item to ItemCache' | 
|   TextBody: | 
|   [* | 
|     // Check if the Item is already existing | 
|     existingItem := LibSCIItem::FindLibSCIItemTypeIndex( uri ); | 
|     if( isnull( existingItem ) ) | 
|     { | 
|       this.LibSCIItem( relnew, | 
|                        Uri := uri ); | 
|                           | 
|       content := construct( Strings ); | 
|        | 
|       content.Add( LibSCIIntegration_Utility::FormatString( uri ) );            // uri | 
|       content.Add( LibSCIIntegration_Utility::FormatString( name ) );           // name | 
|       content.Add( LibSCIIntegration_Utility::FormatString( inhierarchyof ) );  // inHierarchyOf | 
|      | 
|       addedvalues := content.ToString( LibSCIIntegration_Utility::Tokenizer() ); | 
|       addedvalues := this.ItemCache() + String::NewLine() + addedvalues; | 
|      | 
|       this.ItemCache( addedvalues );      | 
|     } | 
|   *] | 
| } |