Mathias Röllig wrote:
Hello!
I want to create a letter via basic macro. The macro reads the initial
data for the letter from a form - the form controls are not linked to a
database.
For the date i want to use a date control, but there isn't a formatting
like 'd. mmmm yyyy'. So i use a formatted field with this formatting,
but also a date control to use the date selector (calendar). (I have
sized the date control field so that only the date selector is visible.)
On the change event of a field a macro reads the actual value and writes
it to the other field. Thats works fine.
But the problem is, that i see the correct date at the screen (e. g. '4.
Dezember 2006'), but the property 'text' of the control model and also
of the view returns the value that is formerly set by the user.
So my workaround is, to use the methods up() and then down() at the view
of the formatted field to set the correct value to the text property.
But i think that there is another (and better) way and which i not see ...
Hope you can understand me. ;-)
Mathias
Hi Mathias,
this is a bug that I could reproduce. The property "Text" or its method
pendant "getText()" of the control should return the displayed text.
I submitted http://www.openoffice.org/issues/show_bug.cgi?id=72281
to deal with it.
Berend
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]