Main Menu

News:

SyntaxBoom, now with pwetty syntax highlighted code boxes! \o/ 

https://www.syntaxboom.com/forum/index.php?topic=96

Shoutbox

GfK

Today at 17:45:33
My mop and bucket was £30. 🤨 It's a Vileda one and you stick it in the bucket and press a pedal with your foot and it spins round and dries the mop out AND IT'S BRILLIANT! 👌

Dabzy

Today at 16:19:35
Oh, I can give you a tip right now, no need to wait... Ahem... Pay someone a fiver to do it, even the bucket was a chew! :D ;)

Jackdaw

Today at 16:04:05
Well if the occasion should ever arise, where I need to gift wrap a mop and bucket. I know where to get tips from ;)

Dabzy

Today at 14:24:38
Has anyone ever tried to wrap up a mop? Never again! :D

Dabzy

Today at 12:17:43
Lol, not the ones from Poundland! :D Anyway, I've got a nice box of chocolates and a Prosecco to go in the bucket! ;)

Jackdaw

Today at 11:18:06
@Dabzy I think they will appreciate it. Have you seen how much it can cost for a good mop and bucket set in this day and age.  I can buy a bottle of Blonde chocolate cream liqueur for less at ASDA.

Dabzy

Today at 10:47:41
Well, I'm off out to buy a 60th birthday pressie... A mam of one of me mates... Gonna get her a mop and bucket, and wrap it up, even wrap the noodly mop bits individually... All in Christmas wrapping paper... Should go down well! :D

Dabzy

2025-10-17, 17:36:22
Well, just have to keep an eyes, even though they said they sorted it like

Jackdaw

2025-10-17, 17:22:26
When I saw it. It was in the very early hours when normal people are fast asleep. Lasted for around half an hour before back to normal.

Dabzy

2025-10-17, 15:02:27
First time I seen it, having me cuppa at work and had a browse... Saw it and I was like "WTF is that!?!", so got on the blower!

Members
Stats
  • Total Posts: 1,826
  • Total Topics: 226
  • Online today: 23
  • Online ever: 232 (Oct 08, 2025, 09:18 AM)
Users Online
Welcome to SyntaxBoom. Please login or sign up.

Recent

.mod folder for Case Select

Started by Baggey, Jun 29, 2025, 03:43 AM

Previous topic - Next topic

Baggey

As in the title anybody know which module the Case Select is stored in.

Idea in BlitzmaxNG you cant
Case ( 1 .. 14 )

You Physically are forced to
Case 1,2,3,4,5,6,7,8,9,10,11,12,13,14

Which is a ball acke.

I would like to modify it. Anybody have any ideas how i cam make this so?  ::)

Baggey
Running a Pc that just aint. Faster nough. I7-4Ghz, 32Gb Ram, 4Gb Nvidia, 2 x 1Tb SSD's, 2 x 24" LCD's

RETRO everything!

Jesus was only famous because of his Dad

Jackdaw

#1
It's not in any module. Case is a statement not a function and is part of the core language. If you want to change that, then you're going to have to modify the Blitz Code Compiler (bcc). So it's not just a simple fix.

After a quick look at what code is being emitted, looks like C. The the Select/Caste is converted into a very big if/then/elseif block. The regular case block (switch) in C/C++ only supports integer numbers.
If you've dug yourself into a hole. Just keep digging. You're bound to come out the other side eventually.

Baggey

#2
as im Shite and finding things could you show the file as a .txt? so i can have a looksy, and have a play with it?

Sadly i haven't learnt how to get Discord directory's like Blitz Code Compiler (bcc) working. I dont know how to .make or whatever your supposed to do with it. If i knew that id like to have ago and altering the IDE and colours etc.. That would be a fun project  ;)

I am very willing to have a try just need a bit of pointing to start with  :D

Kind Regards Baggey
Running a Pc that just aint. Faster nough. I7-4Ghz, 32Gb Ram, 4Gb Nvidia, 2 x 1Tb SSD's, 2 x 24" LCD's

RETRO everything!

Jesus was only famous because of his Dad

Jackdaw

#3
Start with the parser.bmx file, and look for ParseSelectStmt.

What you need is a way where building bcc in debug mode will in it's self run some test code. In this way, up can follow whats going on with it.
If you've dug yourself into a hole. Just keep digging. You're bound to come out the other side eventually.

Baggey

I shall have a look latter thankyou for the heads up.

Now, i have to go Kayaking with the misses up a beautiful river, for a pint and a spot of lunch.  :(

Strange, i feel compelled to sit in the mancave on me computer looking at parsers :-X

Baggey

   
Running a Pc that just aint. Faster nough. I7-4Ghz, 32Gb Ram, 4Gb Nvidia, 2 x 1Tb SSD's, 2 x 24" LCD's

RETRO everything!

Jesus was only famous because of his Dad