Hi,

I have an accounting system that runs fine under LO v3.5.6.2, but under LO
v4.1.5.3 it throws the error "Basic runtime error.  Incorrect property
value".  I've tracked it down to a macro that is attempting to read from a
Date object on the Form.  The object is a
com.sun.star.comp.forms.OdateModel and has a field called "Current Value".
However this field is stored differently between the two LO versions -
*v3.5*
Current Value   20140221   Variant/Long
*v4.1*
Current Value   com.sun.star.util.Date
  - Day       21      UShort
  - Month   2        UShort
  - Year      2014  Integer

My macro is expecting a single value, but under v4.1 it has three values,
so it's obvious why it is throwing the error.

In both cases I have used the Java version 1.6.0_29, so I cannot work out
why there is this difference in the way the OdateModel object is storing
its Current Value.  I could test for the Current Value's Type each time and
extract the date with appropriate code.  But this doesn't seem to be the
right way to go.  And there could be other variances between the LO
versions that I haven't come across yet.

I am running an H2 Database on Windows 7 64 bit.  Can anyone spot what I
might be doing wrong with my Java settings in LO v4.1?

Thanks,

Noel
--
Noel Lodge
lodg...@gmail.com

-- 
To unsubscribe e-mail to: users+unsubscr...@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

Reply via email to