\useregime[il1] \enableregime[il1] \useencoding[ffr] \definehspace[fr][:][.16667em] \definehspace[fr][;][.16667em] \definehspace[fr][!][.16667em] \definehspace[fr][?][.16667em] \mainlanguage[fr] \newdimen\BigWidth \BigWidth=18cm \setupscreens[screen=0.85] \setupcolors[state=start] \setupheadertexts[Rév.: \the\RevC] \def\Vfil{\vskip0pt plus3fil\relax} \def\In[#1,#2]{\ifx#1\empty\else\in[#1]\fi\if\relax#2\else, \In[#2]\fi} \def\BigTitle{\centerline{\framed[width=\BigWidth,offset=2mm, background=screen]{\bfb\setupinterlinespace\cbox{Title}}}}
\def\startChanges{\hbox to \hsize\bgroup\hss\SetTableToWidth{\BigWidth}% \starttable[s1 | c | c | p(95mm) | p(17mm) | p(37mm) |] \HL\BL[5]\AR\VL Rév.\VL Date\VL Origine de la mise à jour\VL§ modifié\VL Auteur\VL\AR\HL} \def\stopChanges{\stoptable\hss\egroup}\newcount\RevC \def\Changes#1[#2]{% \getparameters[CH][#2]% Auteur, Modif, Labels, Date \ifnum\RevC=0 \BigTitle \vskip0.5ex \Vfil \startChanges \fi \global\advance\RevC by 1 \VL \the\RevC \VL \CHDate \VL \CHModif \VL XXX%\In[\CHLabels,\relax] % does not work, but not so important for now \VL \CHAuteur \VL\AR\HL} \def\Destinataires#1{\stopChanges\Vfil \def\temp{#1}\ifx\temp\empty\else\noindenting Destinataires:\crlf#1\blank\fi \centerline{\SetTableToWidth{\BigWidth}% \bf\starttable[| c | c | c |] \HL\BL[3]\AR\VL Approbateur\VL Date\VL Visa\VL\AR\HL \VL\vbox to 2cm{}\VL\VL\VL\AR\HL \stoptable}\par\page\completecontent}
\starttext \Changes[Date=1/2/2004,Modif=First version,Auteur=Peter] \Changes[Date=3/4/2004,Modif=Some modifications,Lables={sec:S1,sec:S2}, Auteur=Peter Münster] \Changes[Date=5/6/2004,Modif=Some other modifications,Lables={sec:S2}, Auteur=Peter] % \Destinataires{Peter, Olivier}
\section[sec:S1]{A section} some text \subsection{Bla} \subsection{Bla}
\section[sec:S2]{Another section} some text \stoptext
Cheers, Peter
The problem: the parameter values are not updated in the two last calls of the macro.
In the second and later call of \Changes you are in the table (\halign or \hbox?, it depends on table mechanism) cell. In both cases you are inside a group. Since \getparameters expands to local assignments, the contents is forgotten outside this cell. Try \getgparameters Vit Zyka