Following is my code that declares variables that should allow me to access a textbox named “TextField1” in a dialog box named “Dialog_location”
Sub StartDialog_show_loc
Dim oDoc as Object
Dim oLib As Object, myDlg As Object, oDlgField As Object
oDoc = ThisComponent
DialogLibraries.LoadLibrary("Standard")
oLib = DialogLibraries.GetByName("Standard")
myDlg = oLib.GetByName("Dialog_location")
oDlg = CreateUnoDialog(myDlg)
oDlgField = oDlg.GetByName("TextField1")
oDlgField.text = Anat_butt
oDlg.execute()
End Sub
When this bit of code runs, I get “Property or method not found: GetByName” and the line of code “oDlgField = oDlg.GetByName(“TextField1”)” is highlighted in the BASIC IDE. Is there a problem with my syntax here, or am I going about this completely wrong?
Thanks in advnace
docbda