I can't find Date in Date Field

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
zenira
Posts: 88
Joined: Sun May 11, 2014 11:24 am

I can't find Date in Date Field

Post by zenira »

Hi Friends
My code goes failure always when I try to get Date from Date Field

Code: Select all

dim form as object 
form=ThisComponent.Sheets.getByName("Sheet").DrawPage.Forms.getByIndex(0)
dim MyDate as object
MyDate=form.getByName("Date Field 1")
dim d as long
d=MyDate.Date  REM Incorrect property value 
MsgBox(d) 
Thank you for your help
LibreOffice 4.1.0.4 on Windows 7
User avatar
Villeroy
Volunteer
Posts: 31279
Joined: Mon Oct 08, 2007 1:35 am
Location: Germany

Re: I can't find Date in Date Field

Post by Villeroy »

Please, edit this topic's initial post and add "[Solved]" to the subject line if your problem has been solved.
Ubuntu 18.04 with LibreOffice 6.0, latest OpenOffice and LibreOffice
Post Reply