"okibi" <okibi at ratedo.com> wrote in message news:f1q8ne$3147$1 at digitalmars.com... > That function contains the i variable from your function. Is there a > simple function, or should I use a cast? Just cast it. chars are just integers; you can freely cast between characters and integers.