3.0 version

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

3.0 version

Post by Mr. Kibernetik »

New function will be added:

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

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.0 version

Post 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.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.0 version

Post 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$].

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.0 version

Post by Mr. Kibernetik »

New function will be added:

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

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.0 version

Post 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.

Dalede
Posts: 131
Joined: Fri Dec 28, 2012 4:00 pm
Location: Grass Valley, CA, USA
Contact:

Re: 3.0 version

Post 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

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.0 version

Post 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.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.0 version

Post 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.

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.0 version

Post 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 ",&"

User avatar
Mr. Kibernetik
Site Admin
Posts: 4786
Joined: Mon Nov 19, 2012 10:16 pm
My devices: iPhone, iPad, MacBook
Location: Russia
Flag: Russia

Re: 3.0 version

Post by Mr. Kibernetik »

FILE READLINE bug when reading Unicode text will be corrected.

Post Reply