From: Martin <martin.althoff@yahoo.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: error with m-database example
Date: Wed, 15 Feb 2012 21:54:05 +0100 [thread overview]
Message-ID: <4F3C1B6D.8060002@yahoo.com> (raw)
In-Reply-To: <AD89D00F-3EB7-48F9-AC4D-23FFFFCC3448@googlemail.com>
[-- Attachment #1: Type: text/plain, Size: 516 bytes --]
>
> \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 #2: csv-test.pdf --]
[-- Type: application/pdf, Size: 5821 bytes --]
[-- Attachment #3: Type: text/plain, Size: 485 bytes --]
___________________________________________________________________________________
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
___________________________________________________________________________________
next prev parent reply other threads:[~2012-02-15 20:54 UTC|newest]
Thread overview: 11+ messages / expand[flat|nested] mbox.gz Atom feed top
2012-02-15 15:06 Martin
2012-02-15 20:12 ` Wolfgang Schuster
2012-02-15 20:54 ` Martin [this message]
2012-02-15 21:08 ` Wolfgang Schuster
2012-02-16 11:03 ` Martin
2012-02-16 12:16 ` Hans Hagen
-- strict thread matches above, loose matches on Subject: below --
2010-12-19 19:37 Florian Wobbe
2010-12-20 16:56 ` Mojca Miklavec
2010-12-20 17:46 ` Florian Wobbe
2010-12-20 21:32 ` Hans Hagen
2010-12-21 8:20 ` Florian Wobbe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=4F3C1B6D.8060002@yahoo.com \
--to=martin.althoff@yahoo.com \
--cc=ntg-context@ntg.nl \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).