>Koen --
>
>OK, but what could that be? AND -- if the code fails, because it is recursive (note that it doesn't even use TextMerge!), why when I resume execution does it not fail.
Could it be that you had a Set Textmerge On already? Fox actually has only one textmerge handle (_text variable) for the old output-to-file merge mode; the new text-to-variable and textmerge() can mess with it if it's still open while they execute.