Develop and Download Open Source Software

Browse Subversion Repository

Contents of /Unit6.pas

Parent Directory Parent Directory | Revision Log Revision Log


Revision 1 - (show annotations) (download) (as text)
Sun Nov 22 11:18:44 2015 UTC (8 years, 4 months ago) by yamat0jp
File MIME type: text/x-pascal
File size: 1760 byte(s)
方向性はあってますが技術的に行き詰っています.IntraWebの情報・経験が不足しています.
ボタンでフォームを切り替えることさえうまくいきませんがセッションの問題でしょうか?
1 unit Unit6;
2
3 interface
4
5 uses
6 Classes, SysUtils, IWAppForm, IWApplication, IWColor, IWTypes, Vcl.Controls,
7 IWVCLBaseControl, IWBaseControl, IWBaseHTMLControl, IWControl, IWCompEdit,
8 IWVCLComponent, IWBaseLayoutComponent, IWBaseContainerLayout,
9 IWContainerLayout, IWTemplateProcessorHTML, IWCompButton, Vcl.Forms, Unit3,
10 IWCompGrids, IWCompCalendar;
11
12 type
13 TUserForm = class(TIWAppForm)
14 IWTemplateProcessorHTML1: TIWTemplateProcessorHTML;
15 IWEdit1: TIWEdit;
16 IWEdit2: TIWEdit;
17 IWEdit3: TIWEdit;
18 IWEdit4: TIWEdit;
19 IWEdit5: TIWEdit;
20 IWButton1: TIWButton;
21 IWFrame1: TIWFrame1;
22 IWCalendar1: TIWCalendar;
23 IWEdit6: TIWEdit;
24 procedure IWButton1Click(Sender: TObject);
25 procedure IWFrame1IWImageFile1Click(Sender: TObject);
26 public
27 private
28 function Check: Boolean;
29 end;
30
31 implementation
32
33 {$R *.dfm}
34
35 uses Unit1, Unit4;
36
37 function TUserForm.Check: Boolean;
38 begin
39 if DM.FDTable1.Locate('EMAIL', DM.FDTable1.FieldByName('EMAIL').AsString, [])
40 = false then
41 result := (Length(IWEdit5.Text) > 5) and (IWEdit5.Text = IWEdit6.Text) and
42 (IWEdit1.Text <> '') and (IWEdit2.Text <> '') and (IWEdit3.Text <> '') and
43 (IWEdit4.Text <> '')
44 else
45 begin
46 WebApplication.ShowMessage('e-mail�������o�^������������');
47 result := false;
48 end;
49 end;
50
51 procedure TUserForm.IWButton1Click(Sender: TObject);
52 begin
53 if Check = true then
54 begin
55 DM.FDTable1.AppendRecord([IWEdit1.Text, IWEdit2.Text, IWEdit3.Text,
56 IWEdit4.Text, IWEdit5.Text]);
57 Release;
58 end
59 else
60 WebApplication.ShowMessage('����������������������');
61 end;
62
63 procedure TUserForm.IWFrame1IWImageFile1Click(Sender: TObject);
64 begin
65 Release;
66 end;
67
68 end.

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26