2.1 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

2.1 version

Post by Mr. Kibernetik »

Commands to set device orientation will be implemented.
Will look like this:

SET ORIENTATION TOP
SET ORIENTATION BOTTOM
SET ORIENTATION LEFT
SET ORIENTATION RIGHT

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

Post by Mr. Kibernetik »

PRINT command will be updated to allow formatted numeric output.
Formatted printing will look like this:

PRINT "###.##" : X
PRINT "# ###" : Y

Format is a string, so it can be stored in a variable:

A$ = "###.##"
PRINT A$:X

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

Re: 2.1 version

Post by Dalede »

A Print using function without the keyword using. Will this also work for draw text?
A useful addition is to also add the capability to recognize a comma in the using function. Such as "xx,xxx.xx" where the comma will just appear in output at the correct place as shown. This is a very powerful way to print easy to read numbers and is no easy to program it separately.

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

Post by Mr. Kibernetik »

Dalede wrote:A useful addition is to also add the capability to recognize a comma in the using function. Such as "xx,xxx.xx" where the comma will just appear in output at the correct place as shown. This is a very powerful way to print easy to read numbers and is no easy to program it separately.
It will be possible to use practically any extra symbols in format. For example, it will be correct to use:
PRINT "###.###.##":123456.789
with result:
123.456.79
or even
PRINT "#.(##)":123.45
with result:
123.(45)
Also exponential form will be possible with symbol "E" in format, for example:
PRINT "#.##E":1234
with result:
1.23E+03

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

Post by Mr. Kibernetik »

New commands will be added:

SET BUTTONS CUSTOM
SET BUTTONS DEFAULT

They will allow to create standard or custom buttons.
Custom buttons means that when button is created its title color and opacity are defined by draw color and alpha, also its background color and opacity are defined by fill color and alpha.

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

Post by Mr. Kibernetik »

New functions will be available:

ASC(a$) returns ASCII number of 1st character in string a$
ASC(a$,n) returns ASCII number of n-th character in string a$
CHR$(a) converts ASCII number to character
STR$(a) converts number a to string
STR$(a,f$) converts number a to string using format f$
MAX(x,y) returns maximum value of x and y
MIN(x,y) returns minimum value of x and y

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

Re: 2.1 version

Post by Dalede »

Looks like a bunch of great new features. This will really place this version ahead of the competition. Will comparison operators < and > be available for strings in if statements so that sorting can be done?

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

Post by Mr. Kibernetik »

Dalede wrote:Will comparison operators < and > be available for strings in if statements so that sorting can be done?
Yes, strings comparison will be available.

Operator
Posts: 138
Joined: Mon May 06, 2013 5:52 am

Re: 2.1 version

Post by Operator »

Wow, smart basic is expanding fast :D
Version 2.1 already submitted or is there
still a chance for other suggestions/wishes ?

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

Post by Mr. Kibernetik »

Operator wrote:Wow, smart basic is expanding fast :D
Version 2.1 already submitted or is there
still a chance for other suggestions/wishes ?
Version 2.1 is already submitted.
But it is always right time for suggestions!

Manual v2.1 is attached.
Attachments
manual.rtf
(44.35 KiB) Downloaded 362 times

Post Reply