Could you explain what you're actually trying to do, instead of the syntax you made up for it? There's quite probably a way to do what you want, but I can only guess what you're actually after.
If you want to get the value of a variable given its name, you can use the ${!VAR} syntax in bash and ksh:
Interesting. The ${!VARNAME} syntax does not work on our ksh or ksh93 on Solaris. Throws a bad substitution error.
Doing it using eval works though with either shell:
#!/bin/bash
ASDF="qwerty"
VARNAME="ASDF"
# If ksh, below errors with: "${!VARNAME}": bad substitution
echo ${!VARNAME}
# This works with either shell:
eval echo "\$${VARNAME}"