Cool way to "quick edit" my application

Post your Gambas programming questions here.
Post Reply
User avatar
BruceSteers
Posts: 657
Joined: Thursday 23rd July 2020 5:20pm

Cool way to "quick edit" my application

Post by BruceSteers » Saturday 28th August 2021 10:43am

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-)
Wishing well
Bruce

If at first you don't succeed , try it differently.

Post Reply