Solved

Fehlerhafter Beispiel Quellcode in Delphi 3.0 Standard

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

Why You Should Analyze Threat Actor TTPs

After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

Join & Write a Comment

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…
In this tutorial I will show you how to use the Windows Speech API in Delphi. I will only cover basic functions such as text to speech and controlling the speed of the speech. SAPI Installation First you need to install the SAPI type library, th…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

708 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

17 Experts available now in Live!

Get 1:1 Help Now