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 - [TV52015259] ValueIndex parameter in custom function's OnCalculate event.
Summary: [TV52015259] ValueIndex parameter in custom function's OnCalculate event.
Status: RESOLVED FIXED
Alias: None
Product: VCL TeeChart
Classification: Unclassified
Component: Other Components (show other bugs)
Version: unspecified
Hardware: All All
: Normal major
Target Milestone: ---
Assignee: Steema Issue Manager
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2010-11-03 10:23 EDT by narcís calvet
Modified: 2013-12-19 14:16 EST (History)
1 user (show)

See Also:
Chart Series: ---
Delphi / C++ Builder RAD IDE Version:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
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;