Link to home
Start Free TrialLog in
Avatar of frw
frw

asked on

Order of operation

procedure TForm1.ComboBox6Change(Sender: TObject);
begin
case combobox6.itemindex of
0:label1.caption:=floattostr(strtofloat(edit1.text)*1.8+32);
1:label1.caption:=floattostr(strtofloat(edit1.text)-32*0.556);
end;{case}
end;
The first label1 works but not the second.
I have tried various combinations to get the Far to Cel
portion to work.(-32 is taken as a -ve)and the incorrect
result is calculated.Answer should be 37.8 C.
Any help would be appreciated.
Also how do you add a splash screen for a program when its
first launched...
ASKER CERTIFIED SOLUTION
Avatar of BlackMan
BlackMan

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Avatar of sakya
sakya

Hello.

There are some ways to display a splash windows.
See a next sample.

-------------------------
uses Unit2;

procedure TForm1.OnFormCreate;
begin
  Form2 := TForm2.Create(Appliation);//Form2 is Splash window
  Form2.Show;
  Form2.Update;

  {your procedure}

  Form2.Release;
end;
--------------

And you set Form2 to selectable form style(Sorry, I don't know
how to say in English. I have a Japanese Edition) in the project option.

And you change FormStyle to fsStayOnTop.

 
sakya

 

For a project, put the plashscreen creation in the start of the project (after the application.intilize of the DPR mainprogram) an close/destroy the form either before the application.run of at the aend of the mainform onshow event.

JDB