2.1 version
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
2.1 version
Commands to set device orientation will be implemented.
Will look like this:
SET ORIENTATION TOP
SET ORIENTATION BOTTOM
SET ORIENTATION LEFT
SET ORIENTATION RIGHT
Will look like this:
SET ORIENTATION TOP
SET ORIENTATION BOTTOM
SET ORIENTATION LEFT
SET ORIENTATION RIGHT
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 2.1 version
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
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
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
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
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 2.1 version
It will be possible to use practically any extra symbols in format. For example, it will be correct to use: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.
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
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 2.1 version
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.
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.
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 2.1 version
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
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
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
Dale
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 2.1 version
Yes, strings comparison will be available.Dalede wrote:Will comparison operators < and > be available for strings in if statements so that sorting can be done?
Re: 2.1 version
Wow, smart basic is expanding fast
Version 2.1 already submitted or is there
still a chance for other suggestions/wishes ?
Version 2.1 already submitted or is there
still a chance for other suggestions/wishes ?
- Mr. Kibernetik
- Site Admin
- Posts: 4786
- Joined: Mon Nov 19, 2012 10:16 pm
- My devices: iPhone, iPad, MacBook
- Location: Russia
- Flag:
Re: 2.1 version
Version 2.1 is already submitted.Operator wrote:Wow, smart basic is expanding fast
Version 2.1 already submitted or is there
still a chance for other suggestions/wishes ?
But it is always right time for suggestions!
Manual v2.1 is attached.
- Attachments
-
- manual.rtf
- (44.35 KiB) Downloaded 362 times