https://bugs.freedesktop.org/show_bug.cgi?id=68751

--- Comment #5 from t...@tim-passingham.co.uk ---
Thanks for that.

When I found the structure existed (by entering a date in the form and seeing
what the attribute contained using the IDE) I saw that it contained Year, Month
and Day.  I then tried setting these in Basic but it failed.

What seemed to happen is that until the Structure has been initialised in some
way you can't just set the individual attributes. So oControl.Date.Year = 2013
fails unless the control has been initialised (eg by entering data manually in
the form).  However, setting the Date control to a local struct does work (ie
oControl.Date = dDate where dDate is a com.sun.star.util.Date struct), and from
then on the Year, Month etc can be set individually.  Odd.

Anyway, I think I have found & fixed all my date & time code now for this, so
not too much of a problem :-)

-- 
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

Reply via email to