Error: DialogBox cannot be used in this context; a document must be selected.
Code:
If Not w.DialogBox (“SelectionDialogBackLogReport”,True, True, False, False,False, False, “Select the backlog report period”, dlgdoc, True, False) Then
Exit Sub
End If
Process:
I use the above code in an action menu agent. The form name and the name used as the first parameter in the DialogBox method is same.
Still I receive this error in 8.5. it works perfectly in 6.5!
I have checked the forum posts but none answer the question as to why it does not work in 8.5!
Is this a 8.5 bug?
Is there any work around to rectify this?
Thank you for your help in advance!