Line | |
---|
1 | program Text;
|
---|
2 |
|
---|
3 | {$A+}
|
---|
4 |
|
---|
5 | type
|
---|
6 | TItem = class
|
---|
7 |
|
---|
8 |
|
---|
9 | property Text: string read dd write ss index
|
---|
10 | 0;
|
---|
11 | end;
|
---|
12 |
|
---|
13 | procedure TForm1.FormClose(Sender: TObject; var
|
---|
14 | Action:
|
---|
15 | TCloseAction);
|
---|
16 | var
|
---|
17 | StringList: TStringList;
|
---|
18 | Texts: string;
|
---|
19 | begin
|
---|
20 |
|
---|
21 | with TStringList.Create do try
|
---|
22 | Assign(RichEdit1.Lines);
|
---|
23 | SaveToFile('Example.pas');
|
---|
24 |
|
---|
25 | // dasdComment
|
---|
26 |
|
---|
27 | //Here we are
|
---|
28 | ddd
|
---|
29 | {dfsf}
|
---|
30 | fdfs
|
---|
31 | asm
|
---|
32 | end;
|
---|
33 |
|
---|
34 | { Comment 2 }
|
---|
35 | dddd
|
---|
36 |
|
---|
37 |
|
---|
38 | (* Ahoj
|
---|
39 |
|
---|
40 | dd
|
---|
41 | *)
|
---|
42 |
|
---|
43 | F := $11;
|
---|
44 | finally
|
---|
45 | Free;
|
---|
46 | end;
|
---|
47 | end;
|
---|
48 |
|
---|
49 | asm
|
---|
50 | MOV AX, BX
|
---|
51 | RET
|
---|
52 | end;
|
---|
53 |
|
---|
54 | {$A+}
|
---|
55 |
|
---|
56 |
|
---|
57 |
|
---|
58 |
|
---|
59 |
|
---|
60 | end.
|
---|
61 |
|
---|
Note:
See
TracBrowser
for help on using the repository browser.