Page 1 of 3

3.0 version

Posted: Mon Nov 18, 2013 7:22 am
by Mr. Kibernetik
New function will be added:

OPTION_BASE ()
returns current value, set by OPTION BASE command.

Re: 3.0 version

Posted: Mon Nov 18, 2013 7:55 am
by Mr. Kibernetik
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.

Re: 3.0 version

Posted: Mon Nov 18, 2013 10:21 am
by Mr. Kibernetik
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$].

Re: 3.0 version

Posted: Mon Nov 18, 2013 10:38 am
by Mr. Kibernetik
New function will be added:

REVERSE$ (A$)
returns string [a$] in reverse order.

Re: 3.0 version

Posted: Mon Nov 18, 2013 2:45 pm
by Mr. Kibernetik
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.

Re: 3.0 version

Posted: Mon Nov 18, 2013 8:34 pm
by Dalede
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

Re: 3.0 version

Posted: Tue Nov 19, 2013 10:33 am
by Mr. Kibernetik
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.

Re: 3.0 version

Posted: Tue Nov 19, 2013 10:54 am
by Mr. Kibernetik
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
Very good.
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.

Re: 3.0 version

Posted: Tue Nov 19, 2013 2:39 pm
by Mr. Kibernetik
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 ",&"

Re: 3.0 version

Posted: Tue Nov 19, 2013 5:07 pm
by Mr. Kibernetik
FILE READLINE bug when reading Unicode text will be corrected.