Login ProductsSalesSupportDownloadsAbout |
Home » Technical Support » Elevate Web Builder Technical Support » Support Forums » Elevate Web Builder General » View Thread |
Messages 1 to 3 of 3 total |
Constant declaration |
Tue, Jan 21 2014 1:41 AM | Permanent Link |
Uli Becker | This declaration fails with the error message:
[Error] Main.wbs (1095,4): Expected : but instead found Offset procedure TMainForm.MyProcedure; var i: integer; const Offset = 20; begin .... end; Are constant declarations not allowed within a procedure? Thanks Uli |
Tue, Jan 21 2014 9:47 AM | Permanent Link |
Raul Team Elevate | Good find - i'm seeing the same.
I know I've used constants before but checking back they were all at the unit level (i.e. after implementation keyword ). Also not seeing anything in help saying you can't have them at function level so need Tim to comment Raul On 1/21/2014 1:41 AM, Uli Becker wrote: > This declaration fails with the error message: > [Error] Main.wbs (1095,4): Expected : but instead found Offset > > procedure TMainForm.MyProcedure; > var > i: integer; > const > Offset = 20; > begin > ... > end; > > Are constant declarations not allowed within a procedure? > > Thanks Uli > |
Tue, Jan 21 2014 2:50 PM | Permanent Link |
Tim Young [Elevate Software] Elevate Software, Inc. timyoung@elevatesoft.com | Uli,
<< Are constant declarations not allowed within a procedure? >> No. Tim Young Elevate Software www.elevatesoft.com |
This web page was last updated on Sunday, December 1, 2024 at 03:59 PM | Privacy PolicySite Map © 2024 Elevate Software, Inc. All Rights Reserved Questions or comments ? E-mail us at info@elevatesoft.com |