How can I execute the calculator with source code?

Written by Francisco R.

With the last version of JfControls the calculator should be executed as follows:

procedure Calculator;
var
    ANumber: Extended;
begin
    ANumber := 1000;
    JfCApp.Calculator(2,ANumber);
end;

With older versions, you will need to do the following:

procedure Calculator;
var
    ANumber: Double;
begin
    ANumber := 1000;
    JfCApp.Calculator(2,ANumber);
end;

where 2 is the number of decimals.

You may also like…

What’s Coming in 10.4.2 Sydney

What’s Coming in 10.4.2 Sydney

Am I the only one who gets excited about new releases? If you look at the RAD Studio Roadmap you will see a new 10.4.2 release of Sydney is scheduled for the first half of 2021. If you are on Update Subscription then you were invited to the NDA 10.4.2 Hunter beta....

DELPHICON 2020

DELPHICON 2020

The official online conference all about Embarcadero Delphi November 17-19, 2020 The Best Delphi Content, Top Experts, All Online, and All Free! 20% discount coupon for purchases made on DELPHICON days: SENDASOFTDELPHICON2020 Register

0 Comments

Submit a Comment