Autor Beitrag
moloch
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Di 28.09.04 11:40 
Hallo leute,
ich möchte ein '- ' an einer bestimmten stelle in einem string einfügen.
wie mache ich das?

mfg
moloch
jasocul
ontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic starofftopic star
Beiträge: 6395
Erhaltene Danke: 149

Windows 7 + Windows 10
Sydney Prof + CE
BeitragVerfasst: Di 28.09.04 11:43 
Suche in der Delphi-Hilfe mal nach insert. :wink:
.Chef
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starofftopic star
Beiträge: 1112



BeitragVerfasst: Di 28.09.04 11:49 
Oder auch Signatur 1.:
ausblenden Delphi-Quelltext
1:
2:
3:
4:
procedure ChefInsert(var s : string;posi : Integer;text : string;);
begin
  s:=Copy(s,1,posi-1)+text+Copy(s,posi,Length(s));
end;

;-)

_________________
Die Antworten auf die 5 häufigsten Fragen:
1. Copy(), Pos(), Length() --- 2. DoubleBuffered:=True; --- 3. Application.ProcessMessages bzw. TThread --- 4. ShellExecute() --- 5. Keine Vergleiche von Real-Typen mit "="!
moloch Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starontopic star
Beiträge: 451

Win 2000
D5 Prof
BeitragVerfasst: Di 28.09.04 13:54 
hey dank dir für deine hilfe.
ich habs ein bischen anders gemacht.
mfg
moloch