[Solved] Properties() method of objects is not found

Creating a macro - Writing a Script - Using the API (OpenOffice Basic, Python, BeanShell, JavaScript)
Post Reply
Ramon52
Posts: 5
Joined: Thu Sep 15, 2016 9:03 pm

[Solved] Properties() method of objects is not found

Post by Ramon52 »

.Properties() function applied to any object gives me error: _ParentDatabase property or method not found

oDatabase = Application.CurrentDb()
Print oDatabase.Properties

oConsulta=oDatabase.TableDefs("Rebuts")
Print oConsulta.Properties

oConsulta=oDatabase.QueryDefs("$RebutDades")
Print oConsulta.Properties

Windows 7, 64 bits
LibreOffice 7.3.5.2

 Edit: Changed subject, was .Properties error 
Make your post understandable by others 
-- MrProgrammer, forum moderator 
Attachments
Proves.odb
(30.26 KiB) Downloaded 82 times
Last edited by MrProgrammer on Wed Sep 21, 2022 6:22 pm, edited 1 time in total.
Reason: Tagged ✓ [Solved] Method name is DBG_Properties() -- MrProgrammer, forum moderator
Apache OpenOffice 4.1.2, Windows 7
FJCC
Moderator
Posts: 9248
Joined: Sat Nov 08, 2008 8:08 pm
Location: Colorado, USA

Re: .Properties error

Post by FJCC »

I am not familiar with that function. Perhaps you want DBG_Properties?

Code: Select all

oSheet = ThisComponent.CurrentController.ActiveSheet
print oSheet.DBG_Properties()
Consider using the MRI extension instead.
MRI
OpenOffice 4.1 on Windows 10 and Linux Mint
If your question is answered, please go to your first post, select the Edit button, and add [Solved] to the beginning of the title.
Ramon52
Posts: 5
Joined: Thu Sep 15, 2016 9:03 pm

Re: .Properties error

Post by Ramon52 »

I use access2base, a collection of objects and methods for database management alternative to UNO. .dbg_properties does not work with these objects.
Is MRI an alternative to access2base?
Apache OpenOffice 4.1.2, Windows 7
Post Reply