Instruments

<< Click to Display Table of Contents >>

Navigation:  NinjaScript > Language Reference > Common >

Instruments

Previous page Return to chapter overview Next page

Definition

A collection of Instrument objects currently used by a script.

 

Property Value

An array of Instrument objects

 

Syntax

Instruments[]

 

 

Examples

ns

protected override void OnStateChange()
{
  if (State == State.DataLoaded)
  {
      // Print all instruments which have been loaded
      foreach (Instrument i in Instruments)
      {
          Print(i.FullName);
      }
  }
}