On 28.08.2007 13:03, Damjan Rems wrote:
> Thanks eval is good. What I have is database with fields 
> name1,name2,name3,name4.. and
> 
> name=eval("name#{num}")
> 
> works!
> 
> Instead of something like
> name = case num
>   when 1; name1
>   when 2; name2
> ..etc

Maybe you should change your database scheme to return an array
name[] with all available name indices?

- Matthias