Robert, I thought that it would be quicker and easier to implement this myself rather than try to explain what to do. Try it out and let me know if it does what you want. I've extended the example in the mlsource/extra/CInterface/Examples directory to include a test. Regards, David