StrReverse: Difference between revisions
Jump to navigation
Jump to search
Created page with "STRREVERSE(''string'') '''Description''' STRREVERSE returns a string created by reversing the character order of another string. The required argument, ''string'', is any va..." |
|||
(4 intermediate revisions by 3 users not shown) | |||
Line 1: | Line 1: | ||
''This function is for BASIC compatibility. It is not available in pure JavaScript projects.'' | |||
'' | StrReverse(''string'') | ||
== Description == | |||
'''Example | StrReverse returns a string created by reversing the character order of another string. The required argument, ''string'', is any valid string expression. | ||
== Example (BASIC) == | |||
<pre> | <pre> | ||
Rem StrReverse Example | |||
' | 'StrReverse reverses characters in a string | ||
Dim Show | |||
Show = "Terrence and Phillip" | Show = "Terrence and Phillip" | ||
Print "Forwards: " & Show | |||
Print "Reverse: " & StrReverse(Show) | |||
</pre> | </pre> | ||
== Output == | |||
<pre> | <pre> | ||
Line 22: | Line 24: | ||
Reverse: pillihP dna ecnerreT | Reverse: pillihP dna ecnerreT | ||
</pre> | </pre> | ||
[[Category:Language Reference]] | |||
[[Category:Strings]] | |||
[[Category:BASIC Functions]] |
Latest revision as of 15:36, 25 March 2019
This function is for BASIC compatibility. It is not available in pure JavaScript projects.
StrReverse(string)
Description
StrReverse returns a string created by reversing the character order of another string. The required argument, string, is any valid string expression.
Example (BASIC)
Rem StrReverse Example 'StrReverse reverses characters in a string Dim Show Show = "Terrence and Phillip" Print "Forwards: " & Show Print "Reverse: " & StrReverse(Show)
Output
Forwards: Terrence and Phillip Reverse: pillihP dna ecnerreT