LO Basic: problem retrieving document Keywords property

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

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: