MID$: Difference between revisions
From Macros Wiki
Jump to navigationJump to search
New page: {{Command|syntax=MID$ <a$>, <n> |description=*DESCRPTION* |param1=<a$>|param1_desc={{a$}} |param2=<n>|param2_desc={{n}} }} ===Example=== :- MID$ Category:Internal_Macro_Functions |
No edit summary |
||
Line 1: | Line 1: | ||
{{Command|syntax=MID$ <a$>, <n> | {{Command|syntax=[[Image:mid$.png|right|MID$]]MID$ <a$>, <n>, <n> | ||
|description= | |description=:Returns the amount of characters in a string from <n> to <n>. | ||
|param1=<a$>|param1_desc={{a$}} | |param1=<a$>|param1_desc={{a$}} | ||
|param2=<n>|param2_desc={{n}} | |param2=<n>|param2_desc={{n}} | ||
|param3=<n>|param3_desc={{n}} | |||
}} | }} | ||
===Example=== | ===Example=== | ||
: | :a$ = MID$(c$, 3, 7) | ||
[[Category:Internal_Macro_Functions]] | [[Category:Internal_Macro_Functions]] |
Revision as of 18:12, 22 July 2010
Command
- 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)