Hi,
I can not complete the first line of the table with the letters of the alphabet.
Thank you.
Fabrice

\starttext
\startlinecorrection[blank]
\startmidaligned
\startluacode
context.startxtable({"align=middle, width=1.25cm"})
    context.startxrow()
    context.startxcell({"width=0.5cm"}) context("") context.stopxcell()
    letter = {'A','B','C','D','E','F','G','H','I','J'}
     for letter = 1,10 do
         context.startxcell() context(print(letter)) context.stopxcell()
     end
    context.stopxrow()
    context.startxrow({"background=color","backgroundcolor=gray"})
    context.startxcell({"width=0.5cm","background=color","backgroundcolor=white"})   context("1") context.stopxcell()
    context.startxcell({"width=2cm"}) context("Année") context.stopxcell()
     for y = 1998,2006 do
         context.startxcell() context(y) context.stopxcell()
     end
    context.stopxrow()
    context.startxrow()
    context.startxcell({"width=0.5cm"}) context("2") context.stopxcell()
    context.startxcell({"width=2cm","background=color","backgroundcolor=gray"})     context("Prix (kg)") context.stopxcell()
     local p = 1
     for y = 1,9 do
         context.startxcell() context("%0.3f",p) context.stopxcell()
         p = p*1.031
     end
    context.stopxrow()    
context.stopxtable()
\stopluacode
\stopmidaligned
\stoplinecorrection
\stoptext