Autor Beitrag
s4lzh3r1ng
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: Do 27.06.02 17:57 
Hallo,

ist es möglich in Delphi Buchstaben aus einem String zu subtrahieren ?
Es soll sich in meinem Fall um die letzten drei Buchstabe eines Strings handeln.
Vielen Dank für eure Hilfe.

_________________
:wink: s4lzh3r1ng :wink:
Arakis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 344



BeitragVerfasst: Do 27.06.02 18:05 
Klar :wink:

ausblenden Quelltext
1:
2:
mystr := '0123456789';
showmessage(leftstr(mystr, length(mystr)-3));


Bis dann
user defined image

_________________
Mit dem Computer löst man Probleme, die man ohne ihn nicht hätte.
Entwickler von SpaceTrek: The New Empire - Siehe Hompage!
Spike
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 69
Erhaltene Danke: 1



BeitragVerfasst: Do 27.06.02 18:05 
ausblenden Quelltext
1:
  s := copy(s,1, Length(s)-3);					

liefert s abzüglich der letzten 3 Buchstaben
Spike
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 69
Erhaltene Danke: 1



BeitragVerfasst: Do 27.06.02 18:07 
aaarg - schon wieder zur gleichen Zeit gepostet :)
s4lzh3r1ng Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: Do 27.06.02 18:37 
Vielen Dank euch beiden !

Mal sehen wer ebeim Nächsten Mal der schnellere ist ! :D

_________________
:wink: s4lzh3r1ng :wink:
Arakis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 344



BeitragVerfasst: Do 27.06.02 18:46 
:mrgreen: :mrgreen: :mrgreen:

Bis dann
user defined image

_________________
Mit dem Computer löst man Probleme, die man ohne ihn nicht hätte.
Entwickler von SpaceTrek: The New Empire - Siehe Hompage!
Pit
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 160



BeitragVerfasst: Do 27.06.02 21:37 


Zuletzt bearbeitet von Pit am Sa 05.10.02 06:21, insgesamt 1-mal bearbeitet
Arakis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 344



BeitragVerfasst: Do 27.06.02 21:41 
Na, man muss dass aber jetzt nicht auf die Goldwaage legen. Sonst hätte s4lzh3r1ng sich schon längst beschwert :wink:

Bis dann
user defined image

_________________
Mit dem Computer löst man Probleme, die man ohne ihn nicht hätte.
Entwickler von SpaceTrek: The New Empire - Siehe Hompage!
Spike
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 69
Erhaltene Danke: 1



BeitragVerfasst: Do 27.06.02 21:42 
na ja - wir waren mal so frei und haben das Wort Buchstaben in Zeichen uminterpretiert :lol:
Aber wenn man's genau nimmt hast Du natürlich Recht.
Spike
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 69
Erhaltene Danke: 1



BeitragVerfasst: Do 27.06.02 21:47 
@ Arakis
das gibts doch nicht *wütendaufstampf* - warst ja schon wieder schneller. Immer postets du wenn ich noch am schreiben bin :mrgreen:
Arakis
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 344



BeitragVerfasst: Do 27.06.02 21:49 
Titel: 10 Finger
Wo zu hat man denn zehn Finger? :lol:

Bis dann
user defined image

_________________
Mit dem Computer löst man Probleme, die man ohne ihn nicht hätte.
Entwickler von SpaceTrek: The New Empire - Siehe Hompage!
s4lzh3r1ng Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 38



BeitragVerfasst: Mi 03.07.02 17:23 
Mann,
ich dacht das Thema wär erledigt aber ihr schreibt fleissig weiter !
(Gibtsjawohlnich)
Außerdem funtkioniert die Lösung prima, weil halt nun mal die letzten drei Zeichen Buchstaben sind . . . .

_________________
:wink: s4lzh3r1ng :wink: