Tobias, Thanks for your useful coding snippets. It would be good to put these into the Gambas online documentation. This might save the same questions being repeatedly asked in this mailing list! -- Regards, John