LEFT$

From Macros Wiki
Revision as of 00:30, 4 January 2011 by Mikeo (talk | contribs)
Jump to navigationJump to search

Up

Command

LEFT$
LEFT$
LEFT$ <a$>, <n>


Returns the left-hand part of a string of characters<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)