LEFT$: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
No edit summary |
No edit summary |
||
Line 1: | Line 1: | ||
{{Command|syntax=[[Image:left$.png|right|LEFT$]]LEFT$ <a$>, <n> | {{Command|syntax=[[Image:left$.png|right|LEFT$]]LEFT$ <a$>, <n> | ||
|description=:Returns the value of the | |description=:Returns the value of the amount of characters in a string from the left by <n>. | ||
|param1=<a$>|param1_desc={{a$}} | |param1=<a$>|param1_desc={{a$}} |
Revision as of 18:07, 22 July 2010
Command
- Returns the value of the amount of characters in a string from the left 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
- a1$ = LEFT$(c$, 9)