UserName: Boolean;
The UserName property determines whether the user defined a name for the time series.
Available values:
True. Name of the time series is set by the user.
False. Name of the time series is generated automatically.
Executing the example requires the workbook with the WBK identifier in the repository.
Add links to the Express, Laner and Metabase system assemblies.
Sub UserProc;
Var
mb: Imetabase;
Eax: IEaxAnalyzer;
Laner: ILaner;
Series: ILanerSeries;
i: Integer;
Serie: ILanerSerie;
Begin
mb := MetabaseClass.Active;
Eax := mb.ItemById("WBK").Bind As IEaxAnalyzer;
Laner := Eax.Laner;
Series := Laner.Series;
Debug.WriteLine("Names of series:");
For i := 0 To Series.Count - 1 Do
Serie := Series.Item(i);
Debug.Write(Serie.Name);
If Serie.UserName Then
Debug.WriteLine(" (set by the user)");
Else
Debug.WriteLine(" (automatically generated)");
End If;
End For;
End Sub UserProc;
After executing the example the console window displays names of workbook series and the method of name creation.
See also: