Skip to main content

I have created a menu item in MapBasic. I need to call a procedure to open a dialog box as the result of one of the menu items being selected. I believe I am having trouble declaring the sub procedure that will be called. I have not included the sub procedure, because it is not right. Here is my code:

Declare Sub Main Sub Main Create Menu "Test" ID "12" As "Preferences", "Leads", "LeadsRemain", "Accts", "AcctsRemain" Alter Menu Bar Add "Test" End Sub

Declare Sub Main
Sub Main
    Create Menu "Test" ID "12" As
        "Preferences",
        "Leads",
        "LeadsRemain",
        "Accts",
        "AcctsRemain"
    Alter Menu Bar Add "Test"
End Sub

I have created a menu item in MapBasic. I need to call a procedure to open a dialog box as the result of one of the menu items being selected. I believe I am having trouble declaring the sub procedure that will be called. I have not included the sub procedure, because it is not right. Here is my code:

Declare Sub Main Sub Main Create Menu "Test" ID "12" As "Preferences", "Leads", "LeadsRemain", "Accts", "AcctsRemain" Alter Menu Bar Add "Test" End Sub

I have created a menu item in MapBasic. I need to call a procedure to open a dialog box as the result of one of the menu items being selected. I believe I am having trouble declaring the sub procedure that will be called. I have not included the sub procedure, because it is not right. Here is my code:

Declare Sub Main
Sub Main
    Create Menu "Test" ID "12" As
        "Preferences",
        "Leads",
        "LeadsRemain",
        "Accts",
        "AcctsRemain"
    Alter Menu Bar Add "Test"
End Sub
Source Link

In MapBasic, how do I display a dialog box as the result of a menu item being clicked on?

I have created a menu item in MapBasic. I need to call a procedure to open a dialog box as the result of one of the menu items being selected. I believe I am having trouble declaring the sub procedure that will be called. I have not included the sub procedure, because it is not right. Here is my code:

Declare Sub Main Sub Main Create Menu "Test" ID "12" As "Preferences", "Leads", "LeadsRemain", "Accts", "AcctsRemain" Alter Menu Bar Add "Test" End Sub