Take a look at the Execute function - it might help.

With Execute "commands", you can create a Kix command string - something like
 Code:
$varname=ReadProfileString('file.ini', 'section', 'VarName')$value=ReadProfileString('file.ini', 'section', 'Value')

$CmdString = 'Dim ' + $Varname + @CRLF + $Varname + '=' + $Value
Execute $CmdString

Of course, there's the issue of the rest of your commands knowing what the varname is, unless you always use Execute.

You might want to look at Howard Bullock's HASH udfs, which work like the Hash function in perl. It lets you reference data associatively (by name, not by varname) which might be more like what you want/need.

Glenn
_________________________
Actually I am a Rocket Scientist! \:D