Re: [fpc-pascal] Connecting to a database from a commandline pascal program

2018-02-16 Thread Mark Morgan Lloyd
On 16/02/18 16:00, Terry A. Haimann wrote: Hello, I am trying to write a command Line Pascal program to connect to a MySQLdatabase using the ZeosDBO Library. I am sure I have done somethingstupid. I have it now so that it will compile, but it crashes as soon as I tryto modify my TZConnection

Re: [fpc-pascal] Connecting to a database from a commandline pascal program

2018-02-16 Thread DaWorm
Wouldn't this... MyConnection.Create(Nil); // MyQuery.Create(Nil); ... be more like... MyConnection := TZConnection.Create(); MyQuery := TQuery.Create(); Then at the end you'd need... MyQuery.Free(); MyConnection.Free(); Jeff On Fri, Feb 16, 2018 at 10:25 AM, Terry A. Haimann

[fpc-pascal] Connecting to a database from a commandline pascal program

2018-02-16 Thread Terry A. Haimann
Hello, I am trying to write a command Line Pascal program to connect to a MySQL database using the ZeosDBO Library. I am sure I have done something stupid. I have it now so that it will compile, but it crashes as soon as I try to modify my TZConnection variable. I have it defined as:

Re: [fpc-pascal] TMS Web core released - based on pas2js.

2018-02-16 Thread Michael Van Canneyt
On Fri, 16 Feb 2018, code dz wrote: nice , but its slow i wich we can achive some thing fast like this : https://flyover.github.io/imgui-js/example/ Sure. All you need to do is create an import class, and you can use this. Michael. ___

Re: [fpc-pascal] TMS Web core released - based on pas2js.

2018-02-16 Thread code dz
nice , but its slow i wich we can achive some thing fast like this : https://flyover.github.io/imgui-js/example/ ___ fpc-pascal maillist - fpc-pascal@lists.freepascal.org http://lists.freepascal.org/cgi-bin/mailman/listinfo/fpc-pascal

Re: [fpc-pascal] Python interaction... how?

2018-02-16 Thread Michael Van Canneyt
On Fri, 16 Feb 2018, leledumbo via fpc-pascal wrote: Does anyone know of a minimal example or pseudo code or just an explanation? Python actually provides a Python.h that you can convert to a Pascal unit. But inside, it includes a bunch of other header files and conversion might be a

Re: [fpc-pascal] Python interaction... how?

2018-02-16 Thread leledumbo via fpc-pascal
> Does anyone know of a minimal example or pseudo code or just an explanation? Python actually provides a Python.h that you can convert to a Pascal unit. But inside, it includes a bunch of other header files and conversion might be a tedious task. If you made it, though, simply call: