Download G-Lock SpamCombat - Glocksoft.net - G
Transcript
word else. You can place a semicolon after an entire if statement to
separate it from the next statement in its block, but the then and else
clauses require nothing more than a space or carriage return between
them. Placing a semicolon immediately before else (in an if statement) is a
common programming error.
Character Strings
You can assign the value of a string constant—or any other expression
that returns a string—to a variable. The length of the string changes
dynamically when the assignment is made. Examples:
MyString := 'Hello Alex!';
MyString := 'Hello ' + 'Alex';
MyString := MyString + '!';
MyString := ' ';
{ space }
MyString := '';
{ empty string }
78
Copyright © G-Lock Software. All rights reserved. G-Lock SpamCombat is a trademark of G-Lock Software.