| 1 |
yamat0jp |
17 |
unit Unit1; |
| 2 |
|
|
|
| 3 |
|
|
interface |
| 4 |
|
|
|
| 5 |
|
|
uses |
| 6 |
|
|
Winapi.Windows, Winapi.Messages, System.SysUtils, System.Variants, System.Classes, Vcl.Graphics, |
| 7 |
|
|
Vcl.Controls, Vcl.Forms, Vcl.Dialogs, FireDAC.Stan.Intf, FireDAC.Stan.Option, |
| 8 |
|
|
FireDAC.Stan.Param, FireDAC.Stan.Error, FireDAC.DatS, FireDAC.Phys.Intf, |
| 9 |
|
|
FireDAC.DApt.Intf, FireDAC.Stan.Async, FireDAC.DApt, FireDAC.UI.Intf, |
| 10 |
|
|
FireDAC.Stan.Def, FireDAC.Stan.Pool, FireDAC.Phys, FireDAC.Phys.SQLite, |
| 11 |
|
|
FireDAC.Phys.SQLiteDef, FireDAC.Stan.ExprFuncs, Vcl.StdCtrls, Vcl.DBCtrls, |
| 12 |
|
|
Vcl.Mask, Vcl.Grids, Vcl.DBGrids, Data.DB, FireDAC.Comp.Client, |
| 13 |
|
|
FireDAC.Comp.DataSet, FireDAC.VCLUI.Wait, FireDAC.Comp.UI; |
| 14 |
|
|
|
| 15 |
|
|
type |
| 16 |
|
|
TForm1 = class(TForm) |
| 17 |
|
|
FDTable1: TFDTable; |
| 18 |
|
|
FDConnection1: TFDConnection; |
| 19 |
|
|
DataSource1: TDataSource; |
| 20 |
|
|
DBEdit1: TDBEdit; |
| 21 |
|
|
DBMemo1: TDBMemo; |
| 22 |
|
|
Memo1: TMemo; |
| 23 |
|
|
DBEdit2: TDBEdit; |
| 24 |
|
|
FDGUIxWaitCursor1: TFDGUIxWaitCursor; |
| 25 |
|
|
FDTable1HOME: TWideMemoField; |
| 26 |
|
|
FDTable1TITLE: TWideStringField; |
| 27 |
|
|
FDTable1TITLE2: TWideMemoField; |
| 28 |
|
|
FDTable1PASS: TWideStringField; |
| 29 |
|
|
FDTable1NGWORDS: TWideMemoField; |
| 30 |
|
|
FDTable1MENTE: TBooleanField; |
| 31 |
|
|
Button1: TButton; |
| 32 |
|
|
procedure FormCreate(Sender: TObject); |
| 33 |
|
|
procedure Button1Click(Sender: TObject); |
| 34 |
|
|
private |
| 35 |
|
|
{ Private ���� } |
| 36 |
|
|
public |
| 37 |
|
|
{ Public ���� } |
| 38 |
|
|
end; |
| 39 |
|
|
|
| 40 |
|
|
var |
| 41 |
|
|
Form1: TForm1; |
| 42 |
|
|
|
| 43 |
|
|
implementation |
| 44 |
|
|
|
| 45 |
|
|
{$R *.dfm} |
| 46 |
|
|
|
| 47 |
|
|
procedure TForm1.Button1Click(Sender: TObject); |
| 48 |
|
|
begin |
| 49 |
|
|
FDTable1.FieldByName('ngwords').AsString:=Memo1.Lines.DelimitedText; |
| 50 |
|
|
FDTable1.Post; |
| 51 |
|
|
end; |
| 52 |
|
|
|
| 53 |
|
|
procedure TForm1.FormCreate(Sender: TObject); |
| 54 |
|
|
begin |
| 55 |
|
|
if FDTable1.Exists = true then |
| 56 |
|
|
begin |
| 57 |
|
|
FDTable1.Open; |
| 58 |
|
|
Memo1.Lines.DelimitedText:=FDTable1.FieldByName('ngwords').AsString; |
| 59 |
|
|
end; |
| 60 |
|
|
end; |
| 61 |
|
|
|
| 62 |
|
|
end. |