From: yamat0jp Date: Mon, 15 Jul 2019 03:18:08 +0000 (+0900) Subject: FDQueryも使ってそれらしくなってきました。 X-Git-Url: http://git.osdn.net/view?a=commitdiff_plain;h=19f2f9267ef260103388599a19b35d7f99b94faf;p=newbbs%2Fnewbbs.git FDQueryも使ってそれらしくなってきました。 --- diff --git a/Unit1.dfm b/Unit1.dfm index 1e42a70..d3580d6 100644 --- a/Unit1.dfm +++ b/Unit1.dfm @@ -1,6 +1,6 @@ object DataModule1: TDataModule1 OldCreateOrder = False - Height = 230 + Height = 231 Width = 302 object FDTable1: TFDTable Active = True @@ -80,7 +80,7 @@ object DataModule1: TDataModule1 end object FDTable2DATE: TDateField FieldName = 'DATE' - Origin = '"DATE"' + Origin = 'DATE' end object FDTable2PASS: TWideStringField FieldName = 'PASS' @@ -194,4 +194,13 @@ object DataModule1: TDataModule1 Origin = 'SOURCE' end end + object FDQuery1: TFDQuery + Connection = FDConnection1 + SQL.Strings = ( + 'select "DATABASE", title, name, "DATE" from' + ' dbname inner join article on dbname.dbnum = article.dbnum' + ' where number = 1 order by "DATE";') + Left = 160 + Top = 144 + end end diff --git a/Unit1.pas b/Unit1.pas index b8c82fa..1548ed1 100644 --- a/Unit1.pas +++ b/Unit1.pas @@ -10,7 +10,7 @@ uses FireDAC.Phys.SQLiteDef, FireDAC.Stan.ExprFuncs, Data.DB, FireDAC.Comp.Client, FireDAC.Comp.DataSet, FireDAC.Phys.IB, FireDAC.Phys.IBLiteDef, FireDAC.VCLUI.Wait, FireDAC.Comp.UI, FireDAC.Phys.MySQL, FireDAC.Phys.MySQLDef, - FireDAC.Phys.IBDef; + FireDAC.Phys.IBDef, Data.FMTBcd, Data.DBXInterBase, Data.SqlExpr; type TDataModule1 = class(TDataModule) @@ -20,7 +20,6 @@ type FDTable3: TFDTable; FDGUIxWaitCursor1: TFDGUIxWaitCursor; DataSource1: TDataSource; - FDTable1DATABASE: TWideStringField; FDTable1DBNUM: TIntegerField; FDTable4: TFDTable; FDTable4DBNAME: TIntegerField; @@ -47,6 +46,8 @@ type FDTable5ID: TIntegerField; FDTable5NAME: TWideStringField; FDTable5SOURCE: TBlobField; + FDQuery1: TFDQuery; + FDTable1DATABASE: TWideStringField; private { Private éŒ¾ } public diff --git a/WebModuleUnit1.dfm b/WebModuleUnit1.dfm index d1d98f5..f48e77d 100644 --- a/WebModuleUnit1.dfm +++ b/WebModuleUnit1.dfm @@ -97,6 +97,11 @@ object TWebModule1: TTWebModule1 Name = 'file' PathInfo = '/file' OnAction = TWebModule1fileAction + end + item + Name = 'title' + PathInfo = '/title' + OnAction = TWebModule1titleAction end> Height = 385 Width = 436 @@ -361,6 +366,7 @@ object TWebModule1: TTWebModule1 '' #9'
' '' + '

'#12288''#12288#12288#12288#12288''#12539#12539#12539'new!' '

[ ><#info> ] ='#12362#30693#12425#12379'

[' + ' master' @@ -374,6 +380,7 @@ object TWebModule1: TTWebModule1 'counter.php?id=pybbs" border="0">' '