MapInfo Pro Developers User Group

Expand all | Collapse all

Add Standalone Script to Menu Based MBX

Jump to Best Answer
  • 1.  Add Standalone Script to Menu Based MBX

    Posted 12-03-2019 21:37
      |   view attached
    Hi,

    I'm looking at running standalone scripts from a menu based MBX.

    I'd like to be able to run this MBX and from there select which scripts I would like to run. I have the menu running smoothly, however am coming unstuck as to how to add the standalone script into the process.

    I'm new to MapBasic and am having some troubles finding how to do something like this so any guidance on it would be greatly appreciated.

    I've included the menu based MBX that I've written so far and below is where in the script I'm looking to add the standalone script.

    ' Updates DCDB Table when check box is selected
    If l_runUpdateDCDB = True then
    Note "DCDB Update"

    'ADD STANDALONE SCRIPT HERE

    end if

    Thanks,

    Kurt


    ------------------------------
    Kurt Young
    Knowledge Community Shared Account
    ------------------------------

    Attachment(s)

    zip
    Menu_Test.zip   1K 1 version


  • 2.  RE: Add Standalone Script to Menu Based MBX
    Best Answer

    Posted 12-03-2019 22:11
    Hi Kurt,

    Is the "Run Application" command what you are after?  This allows you to run one MBX program from another.

    ------------------------------
    James Nolet
    Dooley Mitchell & Morrison Pty Ltd
    Mentone, VIC, Australia
    ------------------------------



  • 3.  RE: Add Standalone Script to Menu Based MBX

    Posted 12-03-2019 23:08
    Hi James,

    Yes that's the one I'm after. Thanks for that!

    Cheers,

    ------------------------------
    Kurt Young
    Knowledge Community Shared Account
    ------------------------------