Delphi Programming Series: 27 – Case Statement

Hi, in this we learn how to use the Case-Statement in the Delphi Programming Language.

Lazarus IDE:
Embarcadero Delphi:
Delphi Programming Helper:


Dennis07 says:

Three annotations:
– Individual IF statements are not equivalent to CASE-OF statements if they are not nested in their ELSE sections. So, the code you wrote is in this case matching to the CASE pattern but not in general. Actually, you’d have to put them all in one IF statement and connect which next one with the ELSE of the last if statement.
– You can add multiple OR-connected label conditions for one CASE label. They are written like a normal range declaration in Delphi: ‘a’..’z’ or 0..255. You can also select single elements like you do when declaring a set: ‘a’,’b’,’c’ or 0,1,2.
– Like in IF statements, CASE statements also support ELSE. In CASE statements, ELSE is executed if no other label condition was matched.

Rhyne Murray says:

Thx alot Shaun! Made me pass my test with an amazing 100% 😀

Gerard Pieterse says:

Nice Afrikaanse aksent

Keagan Stevens says:

Are you South African ?

Write a comment


Human Verification: In order to verify that you are a human and not a spam bot, please enter the answer into the following box below based on the instructions contained in the graphic.

Do you like our videos?
Do you want to see more like that?

Please click below to support us on Facebook!

Send this to a friend

▷ Other ReviewsVehicles▷ Show Cars▷ Motorbikes▷ Scooters▷ Bicycles▷ Rims & Tires▷ Luxury BoatsFashion▷ Sunglasses▷ Luxury Watches▷ Luxury Purses▷ Jeans Wear▷ High Heels▷ Kinis Swimwear▷ Perfumes▷ Jewellery▷ Cosmetics▷ Shaving Helpers▷ Fashion HatsFooding▷ Chef Club▷ Fooding Helpers▷ Coktails & LiquorsSports▷ Sport Shoes▷ Fitness & Detox▷ Golf Gear▷ Racquets▷ Hiking & Trek Gear▷ Diving Equipment▷ Ski Gear▷ Snowboards▷ Surf Boards▷ Rollers & SkatesEntertainment▷ DIY Guides▷ Zik Instruments▷ Published Books▷ Music Albums▷ Cine Movies▷ Trading Helpers▷ Make Money▷ Fishing Equipment▷ Paintball Supplies▷ Trading Card Games▷ Telescopes▷ Knives▷ VapesHigh Tech▷ Flat Screens▷ Tech Devices▷ Camera Lenses▷ Audio HiFi▷ Printers▷ USB Devices▷ PC Hardware▷ Network Gear▷ Cloud Servers▷ Software Helpers▷ Programmer Helpers▷ Mobile Apps▷ Hearing AidsHome▷ Home Furniture▷ Home Appliances▷ Tools Workshop▷ Beddings▷ Floor Layings▷ Barbecues▷ Aquarium Gear▷ Safe Boxes▷ Office Supplies▷ Security Locks▷ Cleaning ProductsKids▷ Baby Strollers▷ Child Car Seats▷ Remote ControlledTravel▷ Luggages & Bags▷ Airlines Seats▷ Hotel Rooms▷ Fun Trips▷ Cruise Ships▷ Mexico Tours