Steema Issues Database

Note: This database is for bugs and wishes only. For technical support help, if you are a customer please visit our online forums;
otherwise you can use StackOverflow.
Before using this bug-tracker we recommend a look at this document, Steema Bug Fixing Policy.



Bug 209

Summary: [TV52015259] ValueIndex parameter in custom function's OnCalculate event.
Product: VCL TeeChart Reporter: narcís calvet <narcis>
Component: Other ComponentsAssignee: Steema Issue Manager <issuemanager>
Status: RESOLVED FIXED    
Severity: major CC: david
Priority: Normal    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Chart Series: --- Delphi / C++ Builder RAD IDE Version:

Description narcís calvet 2013-11-20 10:03:38 EST
ValueIndex parameter in custom function's OnCalculate event. [created:2010-11-03T10:23:36.000+01:00 reported by:narcis@steema.com reported in version:2010.01.11004 (TeeChart VCL)]
Comment 1 david berneda 2013-12-19 14:16:19 EST
Added a new property to TCustomTeeFunction:

ValueIndex : Integer

(Default value is -1, meaning it has no valid value).

At function OnCalculateEvent, ValueIndex goes from 0 to NumPoints-1

procedure TForm1.TeeFunction1Calculate(Sender: TCustomTeeFunction;
  const x: Double; var y: Double);
begin
  y:=x+TeeFunction1.ValueIndex;
end;