I think you mean something like this:
Clear[char];
{Slider[Dynamic[char], {67, 97, 1}], Dynamic[FromCharacterCode[char]]}
The syntax in your question was incorrect because the dynamic variable in the first argument of Slider
can't be a protected function name.
Edit
You also had a ToExpression
in your question. That can be added in this answer too, obviously by writing ToExpression@FromCharacterCode
. Then you just have to make sure your character range doesn't include characters that yield an error when fed into ToExpression
.
Edit 2
In response to the comment, I think what you should do is to write
a = Dynamic[ToExpression@FromCharacterCode[char]]
with the above slider (or some version of it).
a
further below but you should fix up this question describing whata
is and how it relates tochar
. $\endgroup$