Cool way to "quick edit" my application

Post your Gambas programming questions here.
Post Reply
User avatar
BruceSteers
Posts: 1505
Joined: Thursday 23rd July 2020 5:20pm
Location: Isle of Wight
Contact:

Cool way to "quick edit" my application

Post by BruceSteers »

I just added this code to my application...

Public Sub Form_KeyPress()

  Select Key.Code
    Case Key["e"]
      If Key.Control And Key.Shift Then 
        If Not Exist(Application.Path &/ ".project") Then 
          Message.Error("Error!\nCannot edit, I'm not in my project folder")
          Else
        Exec ["gambas3", Application.Path]
        Endif
      Endif
  End Select

End


Now when i'm using my app if i find a problem with it i just hit Ctrl-Shift-E and the gambas IDE opens up with the app loaded 8-)
If at first you don't succeed , try doing something differently.
BruceS
Post Reply