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 va

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 wrote: > Hel

[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: