[Lazarus] Easiest way to "case" strings
Alexander Klenin
klenin at gmail.com
Sat Mar 21 13:39:48 CET 2009
On Sat, Mar 21, 2009 at 20:03, Vincent Snijders
<vincent.snijders at gmail.com> wrote:
> Reenen Laurie schreef:
>> Hi,
>>
>> I'm sure most of you have had this... is there an easy way to have a
>> case statement that's based on "strings" rather than ordinal types. Is
>> there somewhere a shortcut?
>>
>
> You can use stringcase:
> http://lazarus-ccr.sourceforge.net/docs/lcl/lclproc/stringcase.html
>
> Unfortunately without example. It is used in the Lazarus sources, so
> maybe you find out how to use it from there.
Hm, this function duplicates AnsiIndexStr / AnsiIndexText which are
Delphi-compatible. Is there a reason for its existence?
--
Alexander S. Klenin
More information about the Lazarus
mailing list