- This wiki is out of date, use the continuation of this wiki instead
String
From FenixWiki
(Difference between revisions)
Revision as of 14:43, 20 February 2008 (edit) Sandman (Talk | contribs) m (→Definition) ← Previous diff |
Revision as of 14:44, 20 February 2008 (edit) (undo) Sandman (Talk | contribs) m (→Example) Next diff → |
||
Line 20: | Line 20: | ||
say('User logged on: "' + name + " " + surname + '"'); | say('User logged on: "' + name + " " + surname + '"'); | ||
- | | + | Repeat |
frame; | frame; | ||
- | | + | Until(key(_ESC)) |
+ | |||
End | End | ||
+ | Used in example: [[say]](), [[key]]() | ||
+ | |||
</pre> | </pre> |
Revision as of 14:44, 20 February 2008
Definition
STRING
Strings are a sort of character array, combining characters to form text. Because the length of a string is dynamic, adding them is done easily. Single and double quotes can be used to create strings.
Example
Program strings; Private String name; String surname; Begin name = "Yo"; surname = "Momma"; say(name + " " + surname + " has entered."); say('User logged on: "' + name + " " + surname + '"'); Repeat frame; Until(key(_ESC)) End Used in example: [[say]](), [[key]]()