MID$

From Macros Wiki
Revision as of 18:12, 22 July 2010 by ConnerO (talk | contribs)
Jump to navigationJump to search

Command

MID$
MID$
MID$ <a$>, <n>, <n>


Returns the amount of characters in a string from <n> to <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)))
<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$ = MID$(c$, 3, 7)