Thanks for replying, but sorry I didn't make myself clear. I want to put $var into the string, and assign it LATER when I know what's $var. OK, I modify the code a little: ; test
$inifile="test.ini"
IniWrite($inifile, "English", "string1", '"There is a(an) " & $var & " in the box."')
dim $aaa
$var="apple"
Assign("aaa",IniRead($inifile,"English","string1", ""))
MsgBox(0, "", $aaa)
$var="pear"
Assign("aaa",IniRead($inifile,"English","string1", ""))
MsgBox(0, "", $aaa)