Develop and Download Open Source Software

Browse Subversion Repository

Contents of /UserSessionUnit.pas

Parent Directory Parent Directory | Revision Log Revision Log


Revision 2 - (show annotations) (download) (as text)
Sat Dec 19 14:35:42 2015 UTC (8 years, 3 months ago) by yamat0jp
File MIME type: text/x-pascal
File size: 1193 byte(s)
IntraWebをバージョンアップしてから、コンパイルが可能になりました。お見苦しいところをお見せしていました。
まだまだ未完成です。
1 unit UserSessionUnit;
2
3 {
4 This is a DataModule where you can add components or declare fields that are specific to
5 ONE user. Instead of creating global variables, it is better to use this datamodule. You can then
6 access the it using UserSession.
7 }
8 interface
9
10 uses
11 IWUserSessionBase, SysUtils, Classes, Unit3;
12
13 type
14 TPage = (Main,Info);
15
16 TIWUserSession = class(TIWUserSessionBase)
17 procedure IWUserSessionBaseDestroy(Sender: TObject);
18 procedure IWUserSessionBaseCreate(Sender: TObject);
19 private
20 FDM: TDataModule3;
21 function GetDM: TDataModule3;
22 { Private declarations }
23 public
24 { Public declarations }
25 FPage: TPage;
26 user_number: integer;
27 property DM: TDataModule3 read GetDM;
28 end;
29
30 implementation
31
32 {$R *.dfm}
33
34 { TIWUserSession }
35
36 function TIWUserSession.GetDM: TDataModule3;
37 begin
38 if Assigned(FDM) = false then
39 FDM:=TDataModule3.Create(nil);
40 result:=FDM;
41 end;
42
43 procedure TIWUserSession.IWUserSessionBaseCreate(Sender: TObject);
44 begin
45 FPage:=Main;
46 user_number:=1;
47 end;
48
49 procedure TIWUserSession.IWUserSessionBaseDestroy(Sender: TObject);
50 begin
51 FreeAndNil(FDM);
52 end;
53
54 end.
55
56

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