Difference between revisions of "Length"
(Created page with "===From the Scripting Manual=== ''function Length(Text: string): integer;'' '''Parameter Info:''' Text (String): String to checks the length of. '''Description:''' ...") |
(No difference)
|
Latest revision as of 18:53, 23 August 2012
From the Scripting Manual
function Length(Text: string): integer; Parameter Info: Text (String): String to checks the length of. Description: This function will return the length of a string.
Examples
var
MyString: string;
begin
MyString := 'Hello World!';
WriteLn('"'+MyString+'" is '+inttostr(length(MyString))+' characters');
end;
Output: "Hello World" is 12 characters