Quintiq file version 2.0 
 | 
#parent: #root 
 | 
StaticMethod FindCreateDataset () as stream[LibSCIIntegrationInterface] 
 | 
{ 
 | 
  Description: 'Try to load LibSCIIntegrationInterface dataset , if this is empty then create it.' 
 | 
  TextBody: 
 | 
  [* 
 | 
    // Load or create dataset 
 | 
    dataset := null( stream[LibSCIIntegrationInterface] ); 
 | 
     
 | 
    // Get the dataset key 
 | 
    key := LibSCIIntegration_Utility::FindDatasetKey(); 
 | 
     
 | 
    if( key = Key::ZeroKey() ) 
 | 
    { 
 | 
      dataset := LibSCIIntegration_Utility::CreateDataset(); 
 | 
    } 
 | 
    else 
 | 
    { 
 | 
      dataset := LibSCIIntegration_Utility::FindDataset( key ); 
 | 
    } 
 | 
     
 | 
    return dataset; 
 | 
  *] 
 | 
} 
 |