Autor Beitrag
DiamondDog
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 460



BeitragVerfasst: Mi 05.11.08 09:56 
Hallo Leute,
ich hab folgendes Problem und zwar würd ich gerne in eine String einen . einfügen,
das Poblem dabei ist das der Text unterschiedlich lang sein kann.
Beispiel:
10
225
1105
Die Beispiele sollten nachher so aussehn:
1.0
22.5
110.5
Das heist es soll immer von hinten nach dem 1sten Buchstaben ein . eingefügt werden.
Kann mir jemand sagen wie das geht?

Ps:
Die Text länge ermittel ich voher schon fals das Hilft.

Danke schon mal.

Mfg Dog
jaenicke
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 19346
Erhaltene Danke: 1754

W11 x64 (Chrome, Edge)
Delphi 12 Pro, C# (VS 2022), JS/HTML, Java (NB), PHP, Lazarus
BeitragVerfasst: Mi 05.11.08 10:13 
Die Kombination Length + Insert wäre die einfachste Lösung ;-).
DiamondDog Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 460



BeitragVerfasst: Mi 05.11.08 10:17 
Ahh so einfach.
Super habs hinbekommen:
ausblenden Delphi-Quelltext
1:
Insert('.', Text,Laenge);					
Danke.