Autor Beitrag
Aristoteles
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 69

SuSE Linux 10.0
Lazarus 0.9; Delphi7 PE
BeitragVerfasst: Do 13.04.06 14:00 
Hallo Leute!

In einer Funktion muss ich besonders häufig Strings in char-Arrays umwandeln, um schneller auf die einzelnen Zeichen des Strings zugreifen zu können.
Wie mache ich sowas besonders elegant? - Danke schonmal für eine Antwort!

Gruß, Aristoteles
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: Do 13.04.06 14:02 
Mache es doch ohne array:
ausblenden Delphi-Quelltext
1:
2:
3:
str[1]//1. Zeichen von str
str[2]//2. Zeichen von str
length(str)//gibt dir die Länge von str zurück

_________________
Pascal keeps your hand tied. C gives you enough rope to hang yourself. C++ gives you enough rope to shoot yourself in the foot
Aristoteles Threadstarter
ontopic starontopic starontopic starontopic starontopic starofftopic starofftopic starofftopic star
Beiträge: 69

SuSE Linux 10.0
Lazarus 0.9; Delphi7 PE
BeitragVerfasst: Do 13.04.06 14:07 
Super! Problem gelöst.