[Lazarus] Easiest way to "case" strings

Vincent Snijders vincent.snijders at gmail.com
Sat Mar 21 11:03:13 CET 2009


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.

Vincent



More information about the Lazarus mailing list