Want to win a PS4? Go Premium and enter to win our High-Tech Treats giveaway. Enter to Win

x
?
Solved

Fehlerhafter Beispiel Quellcode in Delphi 3.0 Standard

Posted on 1997-06-23
2
Medium Priority
?
177 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
2 Comments
 

Accepted Solution

by:
shoffmeister earned 200 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

[Webinar] Lessons on Recovering from Petya

Skyport is working hard to help customers recover from recent attacks, like the Petya worm. This work has brought to light some important lessons. New malware attacks like this can take down your entire environment. Learn from others mistakes on how to prevent Petya like worms.

Question has a verified solution.

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

Objective: - This article will help user in how to convert their numeric value become words. How to use 1. You can copy this code in your Unit as function 2. than you can perform your function by type this code The Code   (CODE) The Im…
Hello everybody This Article will show you how to validate number with TEdit control, What's the TEdit control? TEdit is a standard Windows edit control on a form, it allows to user to write, read and copy/paste single line of text. Usua…
Want to learn how to record your desktop screen without having to use an outside camera. Click on this video and learn how to use the cool google extension called "Screencastify"! Step 1: Open a new google tab Step 2: Go to the left hand upper corn…
We’ve all felt that sense of false security before—locking down external access to a database or component and feeling like we’ve done all we need to do to secure company data. But that feeling is fleeting. Attacks these days can happen in many w…
Suggested Courses

618 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