Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 2 of 2 total |
Problem With Exception in 2.02 |
Wed, Oct 14 2015 3:22 AM | Permanent Link |
Chris Holland SEC Solutions Ltd. Team Elevate | I have just upgraded to EWB 2.02 and my code now throws an error in the
Exception handling routine where it cannot see the variable 'status' that is declared at the begining of the procedure. Is this a breaking change or a bug? procedure TForm1.SetMessage(msg: string); var status: Boolean; begin status := false; try MessageEdit.Text := msg; status := true; except on E: Exception do begin LogOutput('Cannot set message : ' + msg); status := false; <-- This throws an error end; end; Result := status; end; -- Chris Holland [Team Elevate] |
Wed, Oct 14 2015 3:25 AM | Permanent Link |
Chris Holland SEC Solutions Ltd. Team Elevate | Sorry, just seen Matthew's post about the same thing.
Ignore this one and I will follow his post for a reply. Chris Holland [Team Elevate] On 14/10/2015 08:22, Chris Holland wrote: > I have just upgraded to EWB 2.02 and my code now throws an error in the > Exception handling routine where it cannot see the variable 'status' > that is declared at the begining of the procedure. > > Is this a breaking change or a bug? > > procedure TForm1.SetMessage(msg: string); > var status: Boolean; > begin > status := false; > > try > MessageEdit.Text := msg; > status := true; > except > on E: Exception do > begin > LogOutput('Cannot set message : ' + msg); > status := false; <-- This throws an error > end; > end; > > Result := status; > end; > |
This web page was last updated on Saturday, January 18, 2025 at 07:39 AM | Privacy PolicySite Map © 2025 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |