Solved

Fehlerhafter Beispiel Quellcode in Delphi 3.0 Standard

Posted on 1997-06-23
2
163 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

The uses clause is one of those things that just tends to grow and grow. Most of the time this is in the main form, as it's from this form that all others are called. If you have a big application (including many forms), the uses clause in the in…
This article explains how to create forms/units independent of other forms/units object names in a delphi project. Have you ever created a form for user input in a Delphi project and then had the need to have that same form in a other Delphi proj…
Along with being a a promotional video for my three-day Annielytics Dashboard Seminor, this Micro Tutorial is an intro to Google Analytics API data.
In this video I am going to show you how to back up and restore Office 365 mailboxes using CodeTwo Backup for Office 365. Learn more about the tool used in this video here: http://www.codetwo.com/backup-for-office-365/ (http://www.codetwo.com/ba…

911 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

Need Help in Real-Time?

Connect with top rated Experts

15 Experts available now in Live!

Get 1:1 Help Now