I read about an article on www.delphi3000.com showing work
around to using strings with case statements. I haven't read it
but I believe it would go something like...

Create a list of strings vs index numbers. everytime you need to
add a case add it to the string list, then use the string list to get an
index of the string you pass in the case statement. Just a thought.

Details at the website above.

regards,
NIRAV KAKU

On 7 Jun 01, at 12:15, Reginald Ebenezer wrote:

> Hi
>
>   I understand that string cannot be used in a Case statement because
> delphi does not support it. A work around for the same is using an If
> <Condition> then. I feel this is not a very neat substitute for Case
> Statement. Can any one suggest some other way of doing the same. Thanks
> in advance.
>
> Regards
> Ebenezer
> ---------------------------------------------------------------------------
>     New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
>                   Website: http://www.delphi.org.nz
> To UnSub, send email to: [EMAIL PROTECTED]
> with body of "unsubscribe delphi"
>
>


- From the Shreemat Bh�gwat G�ta -
'Sarcasm is the lowest form of wit.'
---------------------------------------------------------------------------
    New Zealand Delphi Users group - Delphi List - [EMAIL PROTECTED]
                  Website: http://www.delphi.org.nz
To UnSub, send email to: [EMAIL PROTECTED]
with body of "unsubscribe delphi"

Reply via email to