Date: prev next · Thread: first prev next last
2015 Archives by date, by thread · List index


Am 31.05.2015 um 22:43 schrieb James E Lang:
Hi Andreas,

Your Star Basic macro looks very interesting. It is not super complex (initialization, a loop, 
and a super simple supporting function). Has anyone given it a test drive?

As I read the macro, the while loop looks suspect. Isn't it testing the length of a directory 
name [ dir("path/file.ext") ] instead of a file name? And, won't it operate on no more than one 
entity? I thought the idea was to automatically open zero or more office document files when 
soffice starts running.

It also could probably be made more robust by adding a supporting function that validates the 
file's extension. Just a thought.


File name extensions are meaningless. LibreOffice tries to open any file
regardless of its extension. Rename a file to .xyz and open with
LibreOffice.
My code should have an error handler for unsupported (possibly broken)
files so the loop can continue in case of any error. That's it.


-- 
To unsubscribe e-mail to: users+unsubscribe@global.libreoffice.org
Problems? http://www.libreoffice.org/get-help/mailing-lists/how-to-unsubscribe/
Posting guidelines + more: http://wiki.documentfoundation.org/Netiquette
List archive: http://listarchives.libreoffice.org/global/users/
All messages sent to this list will be publicly archived and cannot be deleted

Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.