I have one suggestion regarding Select State statements.
Now if I need to select more numbers or statements I can divide them by , but if I have a large difference like 25-90 it becomes pain to write all of them.
Suggestion is to add TO for numeric values, so it would be something like this
Select Case something
case 1 to 100
case 150 to 200
case else
end select
This was something that I missed in mikroBasic and thought that it's improved in Pro version.
Regards
Kulla
Little improvment to Select Case statement
Re: Little improvment to Select Case statement
Yes, I know, totally agree with you.kulla wrote:I have one suggestion regarding Select State statements.
Now if I need to select more numbers or statements I can divide them by , but if I have a large difference like 25-90 it becomes pain to write all of them.
Suggestion is to add TO for numeric values, so it would be something like thisThis was something that I missed in mikroBasic and thought that it's improved in Pro version.Code: Select all
Select Case something case 1 to 100 case 150 to 200 case else end select
Regards
Kulla
Have a look here.
http://www.mikroe.com/forum/viewtopic.p ... ght=select
Alain
Use brackets:kulla wrote:One thing more because I can't edit my first post. Conditional statements could be also improved a bit so that we get nested if statemens in one line like
if something > 0 and something_else = 1 or something_more > 10 then
end if
Code: Select all
if (something > 0) and (something_else = 1) or (something_more > 10) then
tnx for the help :-)zristic wrote:Use brackets:kulla wrote:One thing more because I can't edit my first post. Conditional statements could be also improved a bit so that we get nested if statemens in one line like
if something > 0 and something_else = 1 or something_more > 10 then
end if
Code: Select all
if (something > 0) and (something_else = 1) or (something_more > 10) then
@Kalain: yes, we can assume that ME has bigger bugs/more important things to do, so this is not priority at all but it will come one day ;-)