Autor Beitrag
dr. rom4o
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 59


TMT-Pascal, D3 Prof, C++Builder
BeitragVerfasst: Mo 06.12.04 15:15 
Hallo community,
ich hab ne vielleicht dumme Frage.
Die Variable zeile : string;
die Länge möchte ich über den Befehl
ausblenden Quelltext
1:
StrLen(zeile);					

ermitteln.
Doch er bringt mir die Fehlermeldung
[Inkompatible Typen: 'String' und 'PChar'.]
So habe ich aus zeile PChar gemacht doch so gibt es woanders
wieder Inkompatibilitäten.
Kann mir jemand sagen wie ich da weiter komme????????
Wie kann ich von String die länge über einen Befehl ermitteln?

grüsse
bedanke mich im Voraus für die Hilfe :-)

_________________
Sei frei!!! ...doch eigentlich bist du es nie...denn Alles ist determiniert
raziel
ontopic starontopic starontopic starontopic starontopic starontopic starofftopic starofftopic star
Beiträge: 2453

Arch Linux
JS (WebStorm), C#, C++/CLI, C++ (VS2013)
BeitragVerfasst: Mo 06.12.04 15:19 
Length heißt das Zauberwort.
Schlag unter dem Begriff mal in der Online-Hilfe (F1 in Delphi) nach!

_________________
JSXGraph
dr. rom4o Threadstarter
ontopic starontopic starontopic starontopic starontopic starontopic starontopic starhalf ontopic star
Beiträge: 59


TMT-Pascal, D3 Prof, C++Builder
BeitragVerfasst: Mo 06.12.04 15:24 
Titel: hey danke es funktioniert, perfekt...endlich komm ich weiter
thx bis zum nächsten mal

_________________
Sei frei!!! ...doch eigentlich bist du es nie...denn Alles ist determiniert