I’m using this macro for a test I want to make, but it keep giving me the wrong number, instead of 24/09/2020 that is on the “datDate” field, it gives me 31/01/2024, it only gives me the right number when I change it, but when I do it, it sets a new “default” date to the date I just defined, and then even if the text in the next record is different, it returns me the old one. Why?
sub testing
dim forms as object
dim test as string
forms = ThisComponent.DrawPage.Forms.getByName("MainForm")
test = forms.getByName("datDate").text
msgbox(test)
end sub