Page 1 of 2
2.1 version
Posted: Thu May 09, 2013 6:12 pm
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
Re: 2.1 version
Posted: Thu May 09, 2013 6:13 pm
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
Re: 2.1 version
Posted: Sat May 11, 2013 10:49 pm
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
Re: 2.1 version
Posted: Sun May 12, 2013 3:42 am
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
Re: 2.1 version
Posted: Sun May 12, 2013 5:16 am
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.
Re: 2.1 version
Posted: Mon May 13, 2013 5:59 am
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
Re: 2.1 version
Posted: Mon May 13, 2013 3:49 pm
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
Re: 2.1 version
Posted: Mon May 13, 2013 7:53 pm
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.
Re: 2.1 version
Posted: Tue May 14, 2013 2:40 pm
by Operator
Wow, smart basic is expanding fast
Version 2.1 already submitted or is there
still a chance for other suggestions/wishes ?
Re: 2.1 version
Posted: Tue May 14, 2013 3:03 pm
by Mr. Kibernetik
Operator wrote:Wow, smart basic is expanding fast
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.