Search found 1114 matches
- Thursday 25th February 2021 2:16pm
- Forum: General
- Topic: Gambas project class files always "read only"
- Replies: 1
- Views: 1943
Re: Gambas project class files always "read only"
Try creating a new class, copy and paste all the code from the old class to the new class then delete the old class. If this does not work please post the program, and we can have a look.
- Thursday 25th February 2021 10:39am
- Forum: General
- Topic: Get build data
- Replies: 13
- Views: 8074
Re: Get build data
...on the date side is it possible to have it show like Monday 1st February 2021 and not Monday 1 February 20201? The quick answer is yes, but you need to create the code to do it. Try this: - Public Sub Form_Open() labApplicationVersion.Text = "Application Version : " & Application.V...
- Wednesday 24th February 2021 4:00pm
- Forum: General
- Topic: Get build data
- Replies: 13
- Views: 8074
Re: Get build data
OK there is a few things here. 1/. When posting code use the 'gb' button, it's much nicer :D 2/. &/ is a powerful command that sorts out if you need, or don't need, a slash in the path. The following will work sPath = "/usr/" &/ "/bin/" &/ "/amidi" 3/. Dim s...
- Wednesday 24th February 2021 3:09pm
- Forum: General
- Topic: Get build data
- Replies: 13
- Views: 8074
Re: Get build data
Please post your program, so we can see what happens.I have just tried this and I get a error "Unexpected 'Application' in frmSplash.Class:15 any idea what this means
- Wednesday 24th February 2021 2:41pm
- Forum: General
- Topic: Get build data
- Replies: 13
- Views: 8074
Re: Get build data
Thanks Bruce I shall try that. Worse case is I just have to changed the date manually. No need. Try this code: - Public Sub Form_Open() Print GetProgDetails() End Public Sub GetProgDetails() As String Dim sText As String = "No executable file found" Dim sPath As String = Application.Path ...
- Tuesday 23rd February 2021 5:51pm
- Forum: Project showcase
- Topic: Colour 'Value' Converter
- Replies: 2
- Views: 3303
Re: Colour 'Value' Converter
I thought this was a good idea and wondered if you could also pick a colour from the screen. I discovered that the ColorChooser does most of what your program does already. Anyway I messed about and came up with the attached program should anybody be interested. I may have also found a bug with Colo...
- Tuesday 23rd February 2021 5:37pm
- Forum: General
- Topic: Get build data
- Replies: 13
- Views: 8074
Re: Get build data
The version number is easy: - Label1.Text = "MySuperProgram V" & Application.Version You can change the version number from the menu Projects > Properties... It is also updated when you make a executable. I'm not sure what you mean by 'Build Date'. Is it the last time it was run in the...
- Tuesday 23rd February 2021 12:11pm
- Forum: General
- Topic: Did you know?
- Replies: 91
- Views: 415558
Re: Did you know?
No I did not know that one. Very useful as I also have run into the same issue. Thanks.
- Saturday 20th February 2021 11:55am
- Forum: Component
- Topic: Custom controls problem
- Replies: 7
- Views: 6215
Re: Making custom controls
How to get the control to display properly in the IDE without a proper install into gambas Or even if it's possible. You were so nearly there, it's just the name of the icon that's wrong. You need the class name. In .hidden/control you need tickboxim.png , and then it works. https://www.cogier.com/...
- Thursday 18th February 2021 11:23am
- Forum: General
- Topic: [Solved] Start up program with variables in line
- Replies: 3
- Views: 2727
Re: Start up program with variables in line
The Command Line Arguments can be picked up by the Args command. If you want to do this like the pros then look at the gb.args which allows you to do this: - Args.Begin sArgPattern = Args.Get("p", "pattern", "File pattern to search e.g.'*.jpg,*.jpeg'", "Pattern&quo...