I cannot seem to find a way to call a function from the menu's onaction, all
it will allow me to do is call a macro, I have defined the following function
that I would like to call.
Function Goto_Frm(ByVal frmName As String)
Dim frm as Form
For Each frm In Forms()
If frm.Visible = True Then
If frm.Caption = frmName Then frm.SetFocus
End If
Next
End Function
When I enter the function name in the onaction option, I get the following
message.
Can't run the macro or callback function 'Goto_Frm'
Make sure the macro of function exists and takes the correct parameters
Amiga1200