Sign in Join

Live chat for Free Pascal, Lazarus, Delphi and every Pascal programmer.

Mailing lists / fpc-devel / 2010-02

In Lazarus fpweb action procedure names no longer include the action name

3 messages · 3 people · –

Reply by email Subscribe to this list Your subscription

Read-only archive. Use j and k to move between messages.

ABorka

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?

AB

Reply by email

Mattias Gaertner
to ABorka
Show quoted text 24 lines
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

Reply by email

Joost van der Sluis
to ABorka: When creating a web application, for example CGI Application in Lazarus, and adding an…
ABorka wrote 6 lines
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. If memory serves, this has worked before properly (even changing the source code when one changed the action name in the object inspector).

Changing the name still works. So what I do is create the procedure with the wrong name, and then rename it in the object-inspector.

But that's just a work-around.

Joost.

Reply by email