RIGHT$: Difference between revisions

From Macros Wiki
Jump to navigationJump to search
ConnerO (talk | contribs)
New page: {{Command|syntax=RIGHT$ <a$>, <n> |description=*DESCRPTION* |param1=<a$>|param1_desc={{a$}} |param2=<n>|param2_desc={{n}} }} ===Example=== :- RIGHT$ [[Category:Internal_Macro_Functions]...
 
ConnerO (talk | contribs)
No edit summary
Line 1: Line 1:
{{Command|syntax=RIGHT$ <a$>, <n>
{{Command|syntax=[[Image:right$.png|right|RIGHT$]]RIGHT$ <a$>, <n>
|description=*DESCRPTION*
|description=:Returns the value of the amount of characters in a string from the right by <n>.


|param1=<a$>|param1_desc={{a$}}
|param1=<a$>|param1_desc={{a$}}
Line 7: Line 7:


===Example===
===Example===
:- RIGHT$
:a$ = RIGHT$(c$, 5)


[[Category:Internal_Macro_Functions]]
[[Category:Internal_Macro_Functions]]

Revision as of 18:06, 22 July 2010

Command

RIGHT$
RIGHT$
RIGHT$ <a$>, <n>


Returns the value of the amount of characters in a string from the right by <n>.

Parameters

<a$>
Text string or name of a string variable.
<n>
Anything that evaluates to a number. This can be a variable, a number, another function, or an expression which includes numbers, variables and/or functions.
For example:
123
r1
r2 + r3
(r1 + (abs(a1 * a2) / (b3 * 62)))

Example

a$ = RIGHT$(c$, 5)