Case is

Post your requests and ideas on the future development of mikroBasic PRO for dsPIC30/33 and PIC24.
Post Reply
Author
Message
nervous
Posts: 80
Joined: 13 Feb 2007 08:35
Location: Italy

Case is

#1 Post by nervous » 01 Feb 2012 10:45

Will be a nice improvement if you can introduce the "case is" statement:

Code: Select all

   Select case Var
        Case is < 0
        Case is > 1000
        Case is <> 100
  end select
I hope you like this proposal

and... BTW... Why don't define in a prototype for a external C library something like that

Code: Select all

prototype Sub Procedure FarProcC(par1 as something, par2 as something) as C_Call
Basically I say to the compiler to change the stack order of the parameters before call this procedure.

Of course the same can be do back from C to Basic or Pascal with something like "B_Call" or "P_Call"
In my experience can be easly implemented, and give a big chance to share any library
Cheers
Nervous

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: Case is

#2 Post by janko.kaljevic » 03 Feb 2012 14:19

Hello,

Thanks for suggesting we will consider it in near future.

Currently it is possible to use library built in C in Basic and other mikroE compilers.
When you built library you get binary (mcl) file which can be included in project and used in Basic or Pascal.

Best regards.

nervous
Posts: 80
Joined: 13 Feb 2007 08:35
Location: Italy

Re: Case is

#3 Post by nervous » 27 Feb 2012 11:25

In the same logic are very usefoul this

Code: Select all

  Select Case X
        Case 1 to 5
        Case 5 to 15
        case else 
  End Select
Cheers
Nervous

User avatar
janko.kaljevic
Posts: 3565
Joined: 16 Jun 2011 13:48

Re: Case is

#4 Post by janko.kaljevic » 28 Feb 2012 17:23

Hello,

OK, thanks for suggesting.
I've forwarded this to our developers.

Best regards.

Post Reply

Return to “mikroBasic PRO for dsPIC30/33 and PIC24 Wish List”