Ignore:
Timestamp:
Aug 4, 2010, 4:10:35 PM (14 years ago)
Author:
george
Message:

Fixed parsing array range error.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/DelphiToC/UMainForm.pas

    r36 r37  
    99  Dialogs, StdCtrls, UPascalSource, UPascalCompiler, UAssemblerSource,
    1010  UCSource, ComCtrls;
     11
     12const
     13  ExampleFileName = '../../Example.pas';
    1114
    1215type
     
    125128procedure TMainForm.FormClose(Sender: TObject; var Action: TCloseAction);
    126129begin
    127   Memo1.Lines.SaveToFile('Example.pas');
     130  Memo1.Lines.SaveToFile(ExampleFileName);
    128131end;
    129132
     
    141144procedure TMainForm.FormShow(Sender: TObject);
    142145begin
    143   Memo1.Lines.LoadFromFile('Example.pas');
     146  Memo1.Lines.LoadFromFile(ExampleFileName);
    144147  Button1Click(Self);
    145148end;
Note: See TracChangeset for help on using the changeset viewer.