maybe its the way he's writting the dialog the sclick event or whatever
try this
dialog mTEST {
title "Variable"
size -1 -1 58 32
option dbu
button "Click to ret VAR", 1, 5 5 49 12
edit "", 2, 5 20 49 10
}
on *:DIALOG:mtest:sclick:1:{
var %test = 290431849
did -ra $dname 1,2 %test
}
if you click the button and both the button and editbox gets filled with the numbers then its the way your scripting