When I look at the libreoffice help (7.6) for ThisDatabaseDocument it says: ThisDatabaseDocument addresses the active Base document
The example looks as follows:
Dim form As Object
ThisDatabaseDocument.CurrentController.connect("","")
form = ThisDatabaseDocument.FormDocuments.getByName("formName").open )
form.currentController.frame.ContainerWindow.IsMaximized = True
What is the use of the 2nd line :ThisDatabaseDocument.CurrentController.connect("","") because I can simply leave it and the result is the same.