I have created a custom button pad that pulls mbx. files that I have written
when specified buttons have been pushed.  Every time I start Mapinfo each
the scripts associated with the new button pad automatically run without me
even pushing them.  Anyone have an idea of what I am doing wrong?  Here is a
copy of the code I am using....
Include "MapBasic.def"
Include "icons.def"
Include "menu.def"

Declare Sub Main
Declare Sub Airgate
Declare Sub Bright

Sub main
  Create ButtonPad "Maps" As
    PushButton
        Icon 99
        HelpMsg "Creates the tables for Airgate affiliate\nCreates the
tables for Airgate affiliate"
      Calling Airgate
  
    PushButton
      Icon 100
      HelpMsg "Unlink a DBMS Table.\nreates the tables for Bright affiliate"
      Calling Bright

End Sub

Sub Airgate
  Run application "F:\Affiliate Roaming Development &
Implementation\Affiliate Folders\Airgate Wireless\Airgate.MBX"
End Sub

Sub Bright
  Run application "F:\Affiliate Roaming Development &
Implementation\Affiliate Folders\Bright PCS\Bright.MBX"
End Sub


Travis Lathrop
Intercarrier Service
913/762-4806



_______________________________________________________________________
List hosting provided by Directions Magazine | www.directionsmag.com |
To unsubscribe, send e-mail to [EMAIL PROTECTED] and
put "unsubscribe MapInfo-L" in the message body.

Reply via email to