TiPlotComponent.GetChannelIndexByName
TiPlotComponent See Also
Used to get the index of a channel object by name.
function GetChannelIndexByName(Value : String) : Integer;
Description
Use the GetChannelIndexByName method to get the index of a channel object by
name. If more than one channel object has the same name, the index of the first
channel object with a matching name will be returned. If a match is not found,
then -1 is returned. The search is case-insensitive.
Example
Delphi
Index := iComponent.GetChannelIndexByName('Channel 1');
C++ Builder
Index = iComponent->GetChannelIndexByName("Channel 1");
Contents | Index | Previous | Next