Page 1 of 1

Case ranges

Posted: Mon Jan 16, 2006 9:39 pm
by netmaestro
Example:

Code: Select all

Select a
  case 1-5, 7-13
  case 10,15,20
Endselect

Posted: Mon Jan 16, 2006 11:23 pm
by Psychophanta
I think something like that is added in 4.0, if i remember well.

Posted: Mon Jan 16, 2006 11:34 pm
by netmaestro
Where can I find info on that? I've seen nothing of what's in v4.

Posted: Tue Jan 17, 2006 12:35 am
by localmotion34
i think you can do that with the "|" character in the code

like :

Case #WM_DRAWITEM
*DrawItem.DRAWITEMSTRUCT = lParam
Select *lpdis\itemState
Case #ODS_SELECTED

Case #ODS_SELECTED | #ODS_FOCUS
endselect
endselect

Posted: Tue Jan 17, 2006 12:38 am
by blueznl
netmaestro, if you scourge the boards, you may dig up some references to what pb v4 can do and not

also, the dev team is known to drop some lines now and again in the chat channel as well

i seem to vaguely recall this was included, i'm pretty sure it was on MY wishlist though :-)

Posted: Tue Jan 17, 2006 9:01 am
by Psychophanta
Yes, Netmaestro, I've seen here in the forums that Fred or other person said it will be in 4.0. I don't know where i saw it, sorry.

Posted: Tue Jan 17, 2006 10:40 am
by akee
Right now... all I'm waiting for is PB 4 beta...

Looks like the IDE and Debugger is taking some time...

I bet right now all Fred wants to say is IDE (I've Done Everything)... :p

Posted: Tue Jan 17, 2006 10:51 am
by Psychophanta
akee wrote:I bet right now all Fred wants to say is IDE (I've Done Everything)... :p
hehe :D
Moreover, who needs the IDE and Debugger? :P

Posted: Tue Jan 17, 2006 11:49 am
by Dare2
akee wrote:I bet right now all Fred wants to say is IDE (I've Done Everything)... :p
:D

Posted: Tue Jan 17, 2006 7:46 pm
by Trond
localmotion34 wrote:i think you can do that with the "|" character in the code

like :

Case #WM_DRAWITEM
*DrawItem.DRAWITEMSTRUCT = lParam
Select *lpdis\itemState
Case #ODS_SELECTED

Case #ODS_SELECTED | #ODS_FOCUS
endselect
endselect
That's not the same.

Code: Select all

Select apple
  Case 3 | 4
    Debug "apple is 7"
EndSelect

Debug 3 | 4