On Sat, Mar 21, 2009 at 20:03, Vincent Snijders <vincent.snijd...@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 _______________________________________________ Lazarus mailing list Lazarus@lazarus.freepascal.org http://www.lazarus.freepascal.org/mailman/listinfo/lazarus