>
> \unexpanded\def\SendMe#1#2{#1\crlf#2}
>
> Wolfgang


Wolfgang, thanks, that worked for the sample code. However, when extended to three fields (I need 8) the field splitting gets rather messy.

Thanks, Martin


Modified code:

\usemodule[database]
\unexpanded\def\SendMe#1#2#3{#1\crlf#2\crlf#3}

\defineseparatedlist
  [Addressen]
  [separator={;},command=\SendMe]

\starttext
\startAddressen
house1;street1;name1
house2;street2;name2
\stopAddressen
\stoptext


Result is in attached PDF (hope that's ok)

Attachment: csv-test.pdf
Description: Adobe PDF document

___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the 
Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________

Reply via email to