https://bugs.freedesktop.org/show_bug.cgi?id=68751
Priority: medium Bug ID: 68751 Assignee: libreoffice-bugs@lists.freedesktop.org Summary: Date Controls changed in Basic Severity: normal Classification: Unclassified OS: All Reporter: t...@tim-passingham.co.uk Hardware: Other Status: UNCONFIRMED Version: 4.1.1.2 rc Component: BASIC Product: LibreOffice Created attachment 84910 --> https://bugs.freedesktop.org/attachment.cgi?id=84910&action=edit A self-contained test database with a Date field in Form1 I used to be able to set a Date Control (oControl) on an LO Base form by writing: oControl.Date = vDate Where vDate contained an ISO date form yyyymmdd as an integer. This worked in LO 4.1 and all previous versions I've used back to 3.4 or thereabouts. This does not work now, and I get 'Object variable not set'. This is a pretty significant change for a minor release (4.1.1). I think this is because the Date attribute is now not a simple attribute but contains Day, Month and Year. I have managed to work around this particular issue by setting the date using the 'Text' attribute (as opposed to 'Date') and a date string instead, but it will have several knock-on effects in my code that I have not yet found. I attach an LO Base form with a macro. Open Form1 and press the PushButton. This runs the Test Macro that sets the date control to be a date using the yyyymmdd form. This gives an error in 4.1.1 but not in 4.1. Is this a deliberate change, or a fault, and will the behaviour in 4.1.1 carry on for all future versions? I need to know whether to trawl though two separate systems and their macros to take account of this, or not. -- You are receiving this mail because: You are the assignee for the bug.
_______________________________________________ Libreoffice-bugs mailing list Libreoffice-bugs@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs