3.0 version
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
3.0 version
New function will be added:
OPTION_BASE ()
returns current value, set by OPTION BASE command.
OPTION_BASE ()
returns current value, set by OPTION BASE command.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.0 version
New function will be added:
MID$ (a$, x, y)
returns substring of string [a$] which starts at index [x] and has length [y]. Command OPTION BASE has its effect in this function.
MID$ (a$, x, y)
returns substring of string [a$] which starts at index [x] and has length [y]. Command OPTION BASE has its effect in this function.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.0 version
New functions will be added:
RIGHT$ (A$, N)
returns [n] characters from the right side of string [a$].
LEFT$ (A$, N)
returns [n] characters from the left side of string [a$].
RIGHT$ (A$, N)
returns [n] characters from the right side of string [a$].
LEFT$ (A$, N)
returns [n] characters from the left side of string [a$].
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.0 version
New function will be added:
REVERSE$ (A$)
returns string [a$] in reverse order.
REVERSE$ (A$)
returns string [a$] in reverse order.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.0 version
New function will be added:
INSTR (STR$, SUBSTR$)
returns character index in string [str$], from which string [substr$] begins. If string [str$] does not contain string [substr$] then returns -1. Search is case-sensitive. Command OPTION BASE has its effect in this function.
INSTR (STR$, SUBSTR$, N)
returns character index in string [str$], from which string [substr$] begins. Search starts from [n]-th character of string [str$]. If string [str$] does not contain string [substr$] then returns -1. Search is case-sensitive. Command OPTION BASE has its effect in this function.
INSTR (STR$, SUBSTR$)
returns character index in string [str$], from which string [substr$] begins. If string [str$] does not contain string [substr$] then returns -1. Search is case-sensitive. Command OPTION BASE has its effect in this function.
INSTR (STR$, SUBSTR$, N)
returns character index in string [str$], from which string [substr$] begins. Search starts from [n]-th character of string [str$]. If string [str$] does not contain string [substr$] then returns -1. Search is case-sensitive. Command OPTION BASE has its effect in this function.
Re: 3.0 version
It would be great if the MID$ function made the third value optional. If not specified then it would return a string that starts with the location of the second value and ended at the end of the string whatever that length might be.
Dale
Dale
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.0 version
New functions will be added:
TRIM$ (a$)
returns string [a$] without spaces at both sides of the string.
RTRIM$ (a$)
returns string [a$] without spaces at the right side of the string.
LTRIM$ (a$)
returns string [a$] without spaces at the left side of the string.
TRIM$ (a$)
returns string [a$] without spaces at both sides of the string.
RTRIM$ (a$)
returns string [a$] without spaces at the right side of the string.
LTRIM$ (a$)
returns string [a$] without spaces at the left side of the string.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.0 version
Very good.Dalede wrote:It would be great if the MID$ function made the third value optional. If not specified then it would return a string that starts with the location of the second value and ended at the end of the string whatever that length might be.
Dale
Modification of function MID$() will be added:
MID$ (a$, x)
returns substring of string [a$] which starts at index [x]. Command OPTION BASE has its effect in this function.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.0 version
New command will be added:
SPLIT a$ TO m$,n WITH s$
splits string [a$] to components using separator - string [s$] and stores result to one-dimensional string array [m$]. Array size is stored to numeric variable [n], if it is used. Parameter [n] is optional. Separator string [s$] contains characters, which are used to split string [a$]. Array [m$] does not contain empty strings.
Example:
SPLIT "1,2,3&4" TO m$,n WITH ",&"
SPLIT a$ TO m$,n WITH s$
splits string [a$] to components using separator - string [s$] and stores result to one-dimensional string array [m$]. Array size is stored to numeric variable [n], if it is used. Parameter [n] is optional. Separator string [s$] contains characters, which are used to split string [a$]. Array [m$] does not contain empty strings.
Example:
SPLIT "1,2,3&4" TO m$,n WITH ",&"
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 3.0 version
FILE READLINE bug when reading Unicode text will be corrected.