Ad blocker interference detected!
Wikia is a free-to-use site that makes money from advertising. We have a modified experience for viewers using ad blockers
Wikia is not accessible if you’ve made further modifications. Remove the custom ad blocker rule(s) and the page will load as expected.
Returns the length of a null terminated string, not a Delphi string.
This is not the same thing as Length(..), instead it scans the string from the pointer given until the first null character.
var s: string; p: PChar; begin s := 'hello'; SetLength(s, 25); p := @s; // get pointer to first character of string ShowMessage(IntToStr(Length(s))); // displays 25 ShowMessage(IntToStr(StrLen(p))); // returns 5 end;
(Please provide links to items specifically related to this item.)
(Please leave your name with your comment.)