Re: [fpc-pascal] Virtual object methods

2019-06-27 Thread Marco van de Voort
Op 27/06/2019 om 23:56 schreef Ryan Joseph: On Jun 27, 2019, at 5:53 PM, Ben Grasset wrote: If you specifically need inheritance (combined with virtual methods) you should probably just use classes, because doing it with objects will require heap allocation regardless. Heap allocate how so?

Re: [fpc-pascal] Developing a mini ERP / web based development

2019-06-27 Thread Marcos Douglas B. Santos
On Thu, Jun 27, 2019 at 7:58 PM Darius Blaszyk wrote: >> >> You can use fpWeb, which came with FPC. > > Great, is there any database master/detail example that I could use to learn? > I have no idea yet how to program the visuals for such an application. Any > tips > would be greatly appreciated

Re: [fpc-pascal] Developing a mini ERP / web based development

2019-06-27 Thread Michael Van Canneyt
On Fri, 28 Jun 2019, Darius Blaszyk wrote: pas2js is used as the basis for TMS Web Core (a commercial product for Delphi/lazarus. pas2js is meanwhile very mature. (I use it myself extensively :)) You must use this if you wish to include a lot of browser-side functionality. What do you mean,

Re: [fpc-pascal] Developing a mini ERP / web based development

2019-06-27 Thread Darius Blaszyk
> > You can use fpWeb, which came with FPC. > Great, is there any database master/detail example that I could use to learn? I have no idea yet how to program the visuals for such an application. Any tips would be greatly appreciated! > I've wrote two simple articles about it, however written in

Re: [fpc-pascal] Developing a mini ERP / web based development

2019-06-27 Thread Darius Blaszyk
Thank you for the suggestions and tips. > I can't inform you about fano. > I sent out a mail to the developer. Let's see what comes back. I think he is also on this list. The demo fano-app did only crash here, see below: Exception class : *ERouteHandlerNotFound* Message : *Route not found. Metho

Re: [fpc-pascal] Virtual object methods

2019-06-27 Thread Ben Grasset
On Thu, Jun 27, 2019 at 5:57 PM Ryan Joseph wrote: > > Heap allocate how so? Calling the constructor seems to fix this and puts > the VMT table on the stack (I think anyways). Btw I’m doing this > specifically as testing for a possible “advancedobjects” mode switch and > the only reason to use ob

Re: [fpc-pascal] Virtual object methods

2019-06-27 Thread Ryan Joseph
> On Jun 27, 2019, at 5:53 PM, Ben Grasset wrote: > > If you specifically need inheritance (combined with virtual methods) you > should probably just use classes, because doing it with objects will require > heap allocation regardless. > Heap allocate how so? Calling the constructor seems

Re: [fpc-pascal] Virtual object methods

2019-06-27 Thread Ben Grasset
On Thu, Jun 27, 2019 at 4:17 PM Ryan Joseph wrote: > Why do I get a runtime error with this? > If you specifically need inheritance (combined with virtual methods) you should probably just use classes, because doing it with objects will require heap allocation regardless. ___

Re: [fpc-pascal] Virtual object methods

2019-06-27 Thread Ryan Joseph
> On Jun 27, 2019, at 4:20 PM, Jonas Maebe wrote: > > tt.pp(4,6) Warning: Virtual methods are used without a constructor in "TA" > tt.pp(14,6) Warning: Virtual methods are used without a constructor in "TB" That’s what the meant! Thanks Regards, Ryan Joseph __

Re: [fpc-pascal] Virtual object methods

2019-06-27 Thread Ryan Joseph
> On Jun 27, 2019, at 4:42 PM, Stefan V. Pantazi wrote: > > Read down the first page, the section "Objects - Dynamic Variables" - all > will become clear. > > By avoiding the virtual methods, you can keep your objects static, all stored > on stack, no need for constructors. I personally find

Re: [fpc-pascal] Virtual object methods

2019-06-27 Thread Stefan V. Pantazi
Read down the first page, the section "Objects - Dynamic Variables" - all will become clear. By avoiding the virtual methods, you can keep your objects static, all stored on stack, no need for constructors. I personally find very useful for my projects. Find fixed example below. Hope it help

Re: [fpc-pascal] Virtual object methods

2019-06-27 Thread Jonas Maebe
On 27/06/2019 22:17, Ryan Joseph wrote: > Why do I get a runtime error with this? tt.pp(4,6) Warning: Virtual methods are used without a constructor in "TA" tt.pp(14,6) Warning: Virtual methods are used without a constructor in "TB" You have to add a constructor and call it, otherwise the object

[fpc-pascal] Virtual object methods

2019-06-27 Thread Ryan Joseph
Why do I get a runtime error with this? == {$mode objfpc} program test; // http://wiki.freepascal.org/Programming_Using_Objects // http://wiki.freepascal.org/Programming_Using_Objects_Page_2 type TA = object procedure DoThis; virtual; end; procedure TA.DoTh

Re: [fpc-pascal] Developing a mini ERP / web based development

2019-06-27 Thread Marcos Douglas B. Santos
On Thu, Jun 27, 2019 at 1:10 PM Darius Blaszyk wrote: > > Hi all, > > I have been asked to write a limited functionality / mini ERP type of > software for an NGO that is setting up a hospital. I'm doing this in my own > time and free of charge. The compiler and IDE of choice are of course > Fre

Re: [fpc-pascal] Developing a mini ERP / web based development

2019-06-27 Thread Michael Van Canneyt
On Thu, 27 Jun 2019, Darius Blaszyk wrote: Hi all, I have been asked to write a limited functionality / mini ERP type of software for an NGO that is setting up a hospital. I'm doing this in my own time and free of charge. The compiler and IDE of choice are of course FreePascal & Lazarus. I’

[fpc-pascal] Developing a mini ERP / web based development

2019-06-27 Thread Darius Blaszyk
Hi all, I have been asked to write a limited functionality / mini ERP type of software for an NGO that is setting up a hospital. I'm doing this in my own time and free of charge. The compiler and IDE of choice are of course FreePascal & Lazarus. I’m still thinking about the direction to go exa