With the amount of code lines involved in VB's "case statement", whats wrong with an
 
if blah then
  do_Blah
else if blahblah then
  do_BlahBlah
else if...
 
I have seen VB's "Select Case" statements embedded within other "Select Case" statements, and it is almost impossible to work out what is going on.
 
Dave.
-----Original Message-----
From: Jeremy Coulter [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, 15 February 2000 2:38 p.m.
To: Multiple recipients of list delphi
Subject: [DUG]: VB Like Case statement

Hi all.
 
the one thing I DO miss from VB is its case statement which can be a number or a string.
 
i.e. select case myvariable
       case "Hello"
           show_hello
      case "goodbye"
           show_goodbye
     end select.
 
This  has its good and bad points, BUT ofcourse in Delphi it pretty much has to me an integer etc.
Does anyone have any ideas how this could be implemented in Delphi, OR if Delphi has a simlilar type of thing....
 
THanks,
 
Jeremy Coulter (manager)
Visual Software Solutions

110 Harewood Road
Christchurch
ph +64 3 3521595
fx +64 3 3521596
cell +21 2533214
http://www.vss.co.nz
 

Reply via email to