Created attachment 97444 [details] test-file In 3.x.y this macro works fine, but in all 4.x.y it breaks with runtime-error. To confirm use table "Stammdaten" and click on "Neuen Beleg eingeben / Belege bearbeiten". It produce an runtime-error in module MIC line if oD1.getcontrol("datum").date="" then Is libreoffice not upward-compatible? with regards Andreas Matthus
Created attachment 97445 [details] error-picture
Hi, there has been several changes since 4.1.x versions, please have a look to our release notes here: https://wiki.documentfoundation.org/ReleaseNotes/4.1#API_Changes https://wiki.documentfoundation.org/ReleaseNotes/4.2#API_Changes Could you confirm? Sophie
Hello Andreas, I don't understand German, but I think it's solved in this post: http://www.libreoffice-forum.de/viewtopic.php?f=12&t=12940 Please, take a look.
Works in 3.5.7.2 (dialog shows up) and Fails on 4.5.0.0alpha built from recent master. Error is: BASIC runtime error. Incorrect property value. The incorrect value is for a dialog control called "datum" in object oD1 (first dialog?). oD1 appears to be all there in watch window, although dialog has not shown. Digging a little deeper (Google translating much of forum linked by raal) and experimenting a little bit perhaps the API has changed as the forum states. Replace '.date' with '.Text' on the line with the error and the dialog comes up without error. Error message says incorrect value - it may well be incorrect property name.
(In reply to LeMoyne Castle from comment #4) > Works in 3.5.7.2 (dialog shows up) and > Fails on 4.5.0.0alpha built from recent master. > > Error is: BASIC runtime error. Incorrect property value. > > The incorrect value is for a dialog control called "datum" in object oD1 > (first dialog?). oD1 appears to be all there in watch window, although > dialog has not shown. > > Digging a little deeper (Google translating much of forum linked by raal) > and > experimenting a little bit perhaps the API has changed as the forum states. > Replace '.date' with '.Text' on the line with the error and the dialog comes > up without error. Error message says incorrect value - it may well be > incorrect property name. Thanks LeMoyne for testing! Closing as notabug. Andreas, you can always set status to UNCONFIRMED if I'm wrong.
Thanks LeMoyne for testing! Yes change from .date to .text on all places let run the macro ... but date is not the same and by using other errors appears too ... I think, we should close the "bug" - too many chances in the API makes a conversion difficult. Whats a pity. So I will use a old version until I find a other macro-set for my exertion. with regards Andreas Matthus