Autor Beitrag
alias5000
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Do 14.09.06 12:53 
Hi!
Ich hab mal ne Frage, und zwar:
Welche Funktion hat das Ascii Zeichen #8 (was für Backspace steht) in Edits oder RichEdits? Der Hintergrund ist, dass ich ein ascii-Zeichen brauche, was in Edits und RichEdits NICHT vorkommen kann und auch keine Auswurkungen auf die Darstellung hat. Wenn ich z.B. #9 (was für das Tab-Zeichen steht) nehme, macht das solange keine Probleme, wie ich in nem RichEdit kein Tab einfüge. Da aber Tabs erlaubt sein sollen, fällt dies auch raus.

Gruß alias5000

_________________
Programmers never die, they just GOSUB without RETURN
oldmax
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 380


D3 Prof, D4 Prof
BeitragVerfasst: Do 14.09.06 13:21 
Hi
Also, wenn du nicht weißt, wie was sich auswirkt (ich hab schon mal besser deutsch gekonnt.. :) ) probier doch einfach die Zuweisung

ausblenden Delphi-Quelltext
1:
MyEdit.Text:='Was macht das#+#8+' in meinem Text';					


Selbiges geht auch in Richedit. Und nun prüfe, ob dein reingebasteltes Zeichen noch existiert:

ausblenden Delphi-Quelltext
1:
2:
3:
TestStr:=MyEdit.Text;
For i:=1 to length(TestStr) do 
   if TestStr[i]=#8 then TestStr[i]:='!'// oder ein anderes Zeichen...

Gruß oldmax

_________________
Zier dich nich so, ich krieg dich schon....
alias5000 Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 2145

WinXP Prof SP2, Ubuntu 9.04
C/C++(Code::Blocks, VS.NET),A51(Keil),Object Pascal(D2005PE, Turbo Delphi Explorer) C# (VS 2008 Express)
BeitragVerfasst: Do 14.09.06 15:09 
Neee, das iss mir schon klar, hab da auch rumprobiert. Ich hab bisher nix dazu gefunden. Nur irgendeinen Sinn muss doch dieses #8 haben. Mir ist das allgemein noch nicht klar, wozu man ein Zeichen braucht, das anzeigt, dass man was gelöscht hat...

Gruß alias5000

_________________
Programmers never die, they just GOSUB without RETURN
Martok
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 3661
Erhaltene Danke: 604

Win 8.1, Win 10 x64
Pascal: Lazarus Snapshot, Delphi 7,2007; PHP, JS: WebStorm
BeitragVerfasst: Do 14.09.06 15:59 
Nimm doch #1, #2, #3, #4.

Die sind StartOfHeading, StartOfText, EndOfText, EndTransmission. Danach kommt Enquiry, Acknowledge, was womöglich nocht geht, aber das Bell danach sollte man nicht nehmen, sonst piepts ;) , zumindest wenn mans mit write() ausgibt.

Mit den ersten 4 hatte ich aber noch nie Probleme.

BTW: ich denke mal das Löschen-Zeichen als Zeichen hat was mit Fernschreiben oder Terminals zu tun. "Ich hab mich vertippt" oder so. :think: Ist ja auch bei Remote-Shells so. Sonst könnte man ja nix löschen.

Martok

_________________
"The phoenix's price isn't inevitable. It's not part of some deep balance built into the universe. It's just the parts of the game where you haven't figured out yet how to cheat."