4.6 version

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

4.6 version

Post by Mr. Kibernetik »

New commands and functions will be added:

ALBUM EXPORT f$
exports image or video file [f$] from smart BASIC to device camera roll.

ALBUM IMPORT f$
imports image or video file from device camera roll to smart BASIC file [f$].

PING (h$)
performs ping of host [h$] and returns 1 if host is available or 0 if not.

SPLITE a$ TO m$,n WITH s$
(SPLIT Empty) the same as SPLIT command, but array [m$] can contain empty strings.

SET OUTPUT BACK COLOR r,g,b
sets text output window background color to value with red [r], green [g] and blue components. Valid values are from 0 to 1.

SET OUTPUT FONT COLOR r,g,b
sets text output window font color to value with red [r], green [g] and blue components. Valid values are from 0 to 1.

SET OUTPUT FONT NAME n$
sets name of text output window font to [n$]. List of fonts you can get by command LIST FONTS.

SET OUTPUT FONT SIZE n
sets size of text output window font to value [n].

SET UI DEBUG FONT_FILE f$
sets font file [f$], if debug table uses third-party TTF-font.

SET UI FILE_BAR FONT_FILE f$
sets font file [f$], if file bar icon titles use third-party TTF-font.

SET UI FILES FONT_FILE f$
sets font file [f$], if files list uses third-party TTF-font.

SET UI TOOL_BAR FONT_FILE f$
sets font file [f$], if toolbar uses third-party TTF-font.

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: 4.6 version

Post by Mr. Kibernetik »

Default page will not be created until it s needed.

Documentation about pages will be changed:

Every created interface object belongs to currently active page. Pages can be created and manipulated by PAGE commands. If interface object, for example button, is created, but there are no any pages yet, then default page is created with empty name "", transparent background and fullscreen size. Active page covers other pages which are located below even if it has transparent background.

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: 4.6 version

Post by Mr. Kibernetik »

New functions will be added:

SYSTEM_EXT_IP$ ()
returns external IP address of device. If unavailable then returns empty string "".

SYSTEM_INT_IP$ ()
returns local IP address of device. If unavailable then returns empty 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: 4.6 version

Post by Mr. Kibernetik »

New function will be added:

PING (h$,p)
performs ping of port [p] of host [h$] and returns 1 if port is available or 0 if not.

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: 4.6 version

Post by Mr. Kibernetik »

Commands will become obsolete:
BUTTON SET TITLE
BUTTON TITLE

and will be replaced with:
BUTTON SET TEXT
BUTTON TEXT

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: 4.6 version

Post by Mr. Kibernetik »

TIMER() and TIMER RESET will become obsolete and will be replaced with:

TIME ()
returns time since program start or since time reset by TIME RESET command, in seconds.

TIME reset
sets to 0 time, returned by TIME () function.


Please note that TIME() returns time in seconds. Also it is much more precise.

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: 4.6 version

Post by Mr. Kibernetik »

New sample program "pages.txt" will be added to "Interactive interface" section.

Post Reply