Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Incident Reports » Incident Reports Addressed for Version 2.02 » View Incident Report |
Serious |
Reported By: Michael Dreher Reported On: 9/29/2015 For: Version 2.01 Build 2 |
procedure TForm1.Button1Click(Sender: TObject); begin Label1.Caption := 'test123'; // this is only to find the function in the JavaScript output Label1.Caption := IntToStr(1); // prints 1 to label Label1.Caption := IntToStr(-1); // prints -1 to label Label1.Caption := IntToStr(+1); // prints 0 to label (since the subject of this thread) Label1.Caption := IntToStr(-(-1)); // prints 0 to label Label1.Caption := IntToStr(+(-1)); // prints 0 to label end; Since I get no compiler error, the + and - signs should be valid. In the help (Operators) both "+" , "-" operators are only listed as binary infix. The JavaScript output: unit1_tform1.$p.tform1_button1click = function(sender) { var $t = this; $t.tform1_label1.tlabelcontrol_setcaption("test123"); $t.tform1_label1.tlabelcontrol_setcaption(inttostr(1)); $t.tform1_label1.tlabelcontrol_setcaption(inttostr(-1)); $t.tform1_label1.tlabelcontrol_setcaption(inttostr(0)); $t.tform1_label1.tlabelcontrol_setcaption(inttostr(0)); $t.tform1_label1.tlabelcontrol_setcaption(inttostr(0)); $t.tform1_label1.tlabelcontrol_setcaption(inttostr(0)); };
This web page was last updated on Wednesday, October 30, 2024 at 11:41 AM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |