Search found 5 matches

by hugleo
28.01.2010, 14:51
Forum: 6.6 - stable
Topic: MySQL fields with '00:00:00' values are converted to NULL
Replies: 1
Views: 231

I've used
DelphiDateTimePicker.Time := QRYResult1.FieldByName('MYSQLTimeField').AsDateTime;
and solved the problem.
by hugleo
28.01.2010, 14:32
Forum: 6.6 - stable
Topic: MySQL fields with '00:00:00' values are converted to NULL
Replies: 1
Views: 231

MySQL fields with '00:00:00' values are converted to NULL

QRYResult1.FieldByName('MYSQLTimeField').Value is returning null when it should return the '00:00:00' converted to time format Example: DelphiDateTimePicker.Time := QRYResult1.FieldByName('MYSQLTimeField').Value; I'm getting a problem about null value. QRYResult1.FieldByName('MYSQLTimeField').Value ...
by hugleo
31.08.2009, 20:40
Forum: 6.6 - stable
Topic: Bug if don't activate main form
Replies: 4
Views: 549

Thanks!

DataModule2.QryPesq.Close;

and

DataModule2.Conexao.Disconnect;

solved for me.
by hugleo
31.08.2009, 16:56
Forum: 6.6 - stable
Topic: Bug if don't activate main form
Replies: 4
Views: 549

- Have you connected to the database? cause exception error in ZDbcMySqlResultSet.pas - Can you send the entire error message, or a print screen ? - If you want to avoid the error, use a try..except construction. I do have a program which connect, run queries and LOTS of things before the Applicati...
by hugleo
31.08.2009, 15:20
Forum: 6.6 - stable
Topic: Bug if don't activate main form
Replies: 4
Views: 549

Bug if don't activate main form

program Project1; uses Forms, Unit1 in 'Unit1.pas' {Form1}, Unit2 in 'Unit2.pas' {DataModule2: TDataModule}; {$R *.res} begin Application.Initialize; Application.CreateForm(TForm1, Form1); Application.CreateForm(TDataModule2, DataModule2); DataModule2.QueryPesq.SQL.Clear; DataModule2.QueryPesq.SQL....