[fpc-devel] In Lazarus fpweb action procedure names no longer include the action name

Mattias Gaertner nc-gaertnma at netcologne.de
Mon Feb 15 12:03:56 CET 2010


On Sun, 14 Feb 2010 12:52:16 -0800
ABorka <fpc-devel at aborka.com> wrote:

> When creating a web application, for example CGI Application in Lazarus, 
> and adding an action to the web module, the automatically generated 
> procedure name only contains a number and not the given action name.
> 
> For example, creating an action with a name ABC will generate a 
> OnRequest procedure (by double clicking in the object inspector on the 
> Events -> OnRequest) like:
> 
> TFPWebActions0Request(Sender: TObject;
>    ARequest: TRequest; AResponse: TResponse; var Handled: Boolean);
> 
> instead of
> 
> TFPWebActionsABCRequest(Sender: TObject;
>    ARequest: TRequest; AResponse: TResponse; var Handled: Boolean);
> 
> If memory serves, this has worked before properly (even changing the 
> source code when one changed the action name in the object inspector).
> Right now, if someone has 50 actions, it takes a while to match the 
> Action ID numbers with the actual functionality within the event handler.
> 
> Latest FPC SVN and latest Lazarus SVN, Win XP 32bit
> 
> Should I create a bug report on this?

Yes, please attach an example. 

BTW, this is a mailing list about fpc, not about lazarus.


Mattias



More information about the fpc-devel mailing list