Search found 20 matches

by Philippe734
Tuesday 24th March 2020 5:48pm
Forum: General
Topic: [Solved] Create settings conf file at beginning
Replies: 5
Views: 6762

Re: Create settings conf file at beginning

cogier wrote: Tuesday 24th March 2020 5:21pmYou can force the settings to save with Settings.Save.
Perfect, thanks! But, it seems that we need to set value before save:
Private Sub WriteSettings()
  Settings["Topic"] = Value  
  If Not Exist(... /myapp.conf) Then
    Settings.Save
  Endif  
End
by Philippe734
Tuesday 24th March 2020 3:31pm
Forum: General
Topic: [Solved] Create settings conf file at beginning
Replies: 5
Views: 6762

[Solved] Create settings conf file at beginning

Hello, When I run my app for the first time in IDE, the following code don't create the settings conf file in .config/gambas3/ Public Sub Form_Open() WriteSettings End Private Sub WriteSettings() Settings["Stack"] = 55 End There is no error. The settings conf file is only created when I cl...
by Philippe734
Tuesday 24th March 2020 3:18pm
Forum: General
Topic: [Solved] Open with default text editor
Replies: 4
Views: 5853

Re: Open with default text editor

  Shell "xdg-open PathToMyFile.txt"
Or
  EXEC ["xdg-open", "PathToMyFile.txt"]
by Philippe734
Tuesday 24th March 2020 1:10pm
Forum: General
Topic: [Solved] Open with default text editor
Replies: 4
Views: 5853

[Solved] Open with default text editor

Hello,
In my app, I wish to open a text file with the default text editor of the system. Please, how to do ? I know with bash, but is there a native Gambas command ?

Code: Select all

xdg-open myfile.txt
by Philippe734
Sunday 22nd March 2020 6:08pm
Forum: General
Topic: [Solved] Not end
Replies: 2
Views: 3937

Re: Not end

You're right, I was in the mistake. Thanks !
by Philippe734
Saturday 21st March 2020 11:09am
Forum: General
Topic: [Solved] Not end
Replies: 2
Views: 3937

[Solved] Not end

Hello, My program has no form and begin with a module, which start a timer within a class named stuff : Public tTimer As New stuff As "stuffrun" Public Sub Main() tTimer.Start End The timer start well, but just for one cycle, then my program is stop when the line "End" is reached...
by Philippe734
Saturday 21st March 2020 10:52am
Forum: General
Topic: [Solved] Begin method with module
Replies: 2
Views: 4010

Re: Start with module

cogier wrote: Friday 20th March 2020 1:31pm Try adding a 'Main' routine in the Module, it works for me.
It works, thanks.
by Philippe734
Friday 20th March 2020 8:53am
Forum: General
Topic: [Solved] Begin method with module
Replies: 2
Views: 4010

[Solved] Begin method with module

Hello, I wish to start my application with a module and not with form. When I set the class to start to my module, the I get the error "begin method not found" (in my language: french). See the picture bellow. How can start a project with a module and not with a form? http://i.imgur.com/Pc...
by Philippe734
Tuesday 18th February 2020 8:12pm
Forum: General
Topic: [Solved] Package as Appimage
Replies: 15
Views: 17239

Re: Package as Appimage

My goal is to share my applications as Appimage. As my applications are small, no need to do update in time, that's why I think Appimage is a ideal package type for share my apps.
by Philippe734
Sunday 16th February 2020 7:42pm
Forum: General
Topic: [Solved] Package as Appimage
Replies: 15
Views: 17239

[Solved] Package as Appimage

Hello, Please, could tell me where to find a guide to how to package my applications (developed in Gambas) as Appimage. The following guide from Appimage don't help me to package a Gambas application as Appimage package. https://docs.appimage.org/packaging-guide/index.html Any help will be much appr...