Solved

Fehlerhafter Beispiel Quellcode in Delphi 3.0 Standard

Posted on 1997-06-23
2
167 Views
Last Modified: 2011-09-20
Ich das Beispielprogramm von Delphi 3.0 Standard abgearbeitet. Doch beim Programmablauf escheint eine Fehlermeldung, d.h. drei Fehlermeldungen zwei davon habe ich selbst berichtigt
fehlende "1" bei DBGrid.Fields[i].AsString]));
und fehlende ")" bei SaveToFile(SaveDialog1.FileName;
Doch zur dritten Fehlermeldung über die nicht deklarierte "CRLF" Anweisung weiß ich keinen Rat und kann auch nichts in der Online Hilfe dazu finden.
Wie muß die Zeile denn richtig lauten ?
Original Quelltext ...
 procedure TForm1.BitBtn2Click(Sender: TObject);
var
 i: integer;
begin
 SaveDialog1.Title :=Format('Save info for %s', [DBText1.Field.AsString]);
 if SaveDialog1.Execute then
 begin
   with TStringList.Create do
   try
     Add(Format('Facts on the %s', [DBText1.Field.AsString]));
     Add(#13#10);
     for i := 1 to DBGrid1.FieldCount-3 do
       Add(Format('%s : %s',

         [DBGrid1.Fields[i].FieldName,
          DBGrid.Fields[i].AsString]));
     Add(Format(CRLF+'%s'+CRLF,[DBMemo1.Text]));
     SaveToFile(SaveDialog1.FileName;
   finally
     Free;
   end;
 end;
end;

Vielen Dank für Eure Bemühungen

Rüdiger Kutzik
0
Comment
Question by:ulli.rk
2 Comments
 

Accepted Solution

by:
shoffmeister earned 50 total points
ID: 1337657
Ersetze
[Replace]

var
  i: integer;

durch
[by]

var
  i: integer;
const
  CRLF = #13#10;

0
 

Author Comment

by:ulli.rk
ID: 1337658
Hello  Shoffmeister...,

Thank you for the prompte reply my question.
I`ll this Internet page at any rate farther recommend.

Rüdiger Kutzik
0

Featured Post

Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
delphi prevent click fast 2 219
Virtuailstring tree compare node issue 14 117
Delphi XE10 Round Image 2 128
Delphi Yen format 3 35
Introduction Raise your hands if you were as upset with FireMonkey as I was when I discovered that there was no TListview.  I use TListView in almost all of my applications I've written, and I was not going to compromise by resorting to TStringGrid…
In my programming career I have only very rarely run into situations where operator overloading would be of any use in my work.  Normally those situations involved math with either overly large numbers (hundreds of thousands of digits or accuracy re…
This tutorial gives a high-level tour of the interface of Marketo (a marketing automation tool to help businesses track and engage prospective customers and drive them to purchase). You will see the main areas including Marketing Activities, Design …
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

809 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question