Autor Beitrag
Heiko
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: Mi 22.02.06 18:12 
Hi @all,

ich schreibe momentan mit Delphi eine Consolenanwendung. Nun ich will ich hin und wieder einmal das ganze Consolenfenster löschen (nat. nur den Inhalt ;) ) bzw. manchmal auhc nur ein paar Zeilen. Wie kann ich das machen?

Heiko
Horst_H
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1654
Erhaltene Danke: 244

WIN10,PuppyLinux
FreePascal,Lazarus
BeitragVerfasst: Mi 22.02.06 18:26 
Hallo,

ach die schoenen,schrecklichen Turbo Pascal Zeiten..
Mit der Unit CRT kannst Du delLine WhereXY,clrScr usw nutzen
www.swissdelphicente...showcode.php?id=1941 insbesondere die Kommentare, damit es auch kompiliert wird
Zitat:

Please add at begin of this unit these lines (after similar):

...
{$IfDef VER150}
{$Define NEW_STYLES}
{$EndIf}
...

Delphi7 is VER150, not VER130 or VER140.


Gruss Horst
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mi 22.02.06 18:33 
Den Inhalt löschen? Da springt mich sofort der Befehl
ausblenden Delphi-Quelltext
1:
ClrScr;					

an ;)

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Heiko Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: Mi 22.02.06 20:56 
user profile iconKoller hat folgendes geschrieben:
Den Inhalt löschen? Da springt mich sofort der Befehl
ausblenden Delphi-Quelltext
1:
ClrScr;					

an ;)


Ja, der Befehl ist mir von TP bekannt. Mein Problem war ja eigentlich das ich keine passende Unit gefunden habe ;)

@Horst_H: Thx für den Link, aber ich hasse Units die man nicht ohne nachbearbeitung zum laufen bekommt ... (aber das was ich brauche läuft wenigstens :) )

mfg
Heiko
Marco D.
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2750

Windows Vista
Delphi 7, Delphi 2005 PE, PHP 4 + 5 (Notepad++), Java (Eclipse), XML, XML Schema, ABAP, ABAP OO
BeitragVerfasst: Mi 22.02.06 21:45 
Du musst dafür die Unit WinCrt oder nur Crt einfüge.

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Heiko Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 3169
Erhaltene Danke: 11



BeitragVerfasst: Do 23.02.06 07:55 
user profile iconKoller hat folgendes geschrieben:
Du musst dafür die Unit WinCrt oder nur Crt einfüge.


Die beiden Units existieren bei D9 nicht ;)
Dankredues
Hält's aus hier
Beiträge: 6


Delphi 7 Personal
BeitragVerfasst: Mo 27.02.06 14:11 
auch in D 3 ned