Autor Beitrag
Shadow110
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 64



BeitragVerfasst: Fr 07.05.04 09:12 
Hallo.

Kann man Functionen oder Proceduren in eine Konsolenanwendung einbauen. Ich weis, das Teil läuft von Anfang zum Ende durch, und ist dann fertig, aber ich muss bestimmte TextVerarbeitungs (string) Sachen mehrfach innerhalb der Anwendung laufen lassen. Aber irgendwie will er das bei mir nicht nehmen, wenn ich da eine Procedure einfüge?

Grüße
Alex
JoelH
ontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic starofftopic star
Beiträge: 806
Erhaltene Danke: 17

Win10
Delphi Alexandria 11.2 Patch 1
BeitragVerfasst: Fr 07.05.04 09:17 
Titel: hmm,
warum sollte das nicht gehen ? Poste mal deinen COde.

_________________
mfg. Joel
Shadow110 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 64



BeitragVerfasst: Fr 07.05.04 09:57 
Hi....

Ich bin doof... Ich hatte die Function zwischen dem BEGIN und END geschrieben also so:

ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
program Project1;

{$APPTYPE CONSOLE}

uses
  SysUtils;

begin

procedure calc (test:integer);
begin
end;

  { TODO -oUser -cConsole Main : Hier Code einfügen }
end.



Und so soll es ja:


ausblenden Delphi-Quelltext
1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
program Project1;

{$APPTYPE CONSOLE}

uses
  SysUtils;


procedure calc (test:integer);
begin
end;

begin
  { TODO -oUser -cConsole Main : Hier Code einfügen }
end.



Danke euch
Grüße
Alex