Difference between revisions of "Length"

From Soldat Community Wiki
Jump to: navigation, search
(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 19: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


External Links