Hi John
It seems that Keywords is stored as a string array, so if you want to
read it into a string you need to convert it into a string. One way to
do this is to use the Join-function. In your case exchange the line that
crashes with.
pDates = Join(oDoc.DocumentProperties.Keywords, ", ")
I'm not 100 % sure if comma is used as a separator in all languages, let
us know if the code above does not work for you.
Regards,
Niklas Johansson
john herron skrev den 2014-11-26 07:55:
For billing purposes I store parameters into the Description fields of
LO text document properties.
Have no problems retrieving data entered in the Title, Subject,
Description property fields by simply assigning the data to string
variables.
However, when I try to assign to a string variable the contents of the
Keywords property, I get the error message depicted in the following
code screenshot:
http://tinypic.com/m/imus2c/4
Can anyone help me figure out what the problem might be?
Thanks.
jdh
--
To unsubscribe e-mail to: [email protected]
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