Re: [fpc-pascal] HTTPRoute.pas and TRouteObject

2018-06-03 Thread Marcos Douglas B. Santos
On Sun, Feb 11, 2018 at 4:24 AM, Kevin Jesshope wrote: > > Thanks Michael, > > I did consider putting everything in the HandleRequest but I prefer > the virtual constructor. I would like to suggest you do not use inherited classes from TRouteObject as its business classes. Inside HandleRequest y

Re: [fpc-pascal] HTTPRoute.pas and TRouteObject

2018-02-10 Thread Kevin Jesshope
Thanks Michael, I did consider putting everything in the HandleRequest but I prefer the virtual constructor. Regards Kevin Jesshope - In Touch Computer Support Supporting Aberfoyle Hub R-7 and Happy Valley Primary Schools On Sat, Feb 10, 2018 at 6:06 PM, Michael Van Canneyt wrote: > > > On Sa

Re: [fpc-pascal] HTTPRoute.pas and TRouteObject

2018-02-09 Thread Michael Van Canneyt
On Sat, 10 Feb 2018, Kevin Jesshope wrote: Hi, Working on a standalone web project using the new routing. I have a class descended from TRouteObject. My problem is that the constructor cannot be marked override so it is not called when the class is created by HTTPRouter. Adding an empty vi

[fpc-pascal] HTTPRoute.pas and TRouteObject

2018-02-09 Thread Kevin Jesshope
Hi, Working on a standalone web project using the new routing. I have a class descended from TRouteObject. My problem is that the constructor cannot be marked override so it is not called when the class is created by HTTPRouter. Adding an empty virtual TRouteObject.create resolves this. Is thi