18 Nov
2006
18 Nov
'06
3:47 a.m.
Hi, Can someone explain what should be the correct order of expansion here. I want to enter the date entered as a variable to a file. \setvariables [test] [date={d=11,m=11,y=2006}] \starttext The date entered was \expanded{\date[\getvariable{test}{date}]}. \immediate\openout \scratchwrite test-001 \immediate\write \scratchwrite {The date entered was} % None of these work. % \immediate\write \scratchwrite {\expanded{\date[\getvariable{test}{date}]}} % \expanded{\immediate\write \scratchwrite \date[\getvariable{test}{date}]}} \immediate\closeout\scratchwrite \stoptext Thanks, Aditya