Search found 1112 matches

by cogier
Wednesday 24th February 2021 4:00pm
Forum: General
Topic: Get build data
Replies: 13
Views: 8007

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...
by cogier
Wednesday 24th February 2021 3:09pm
Forum: General
Topic: Get build data
Replies: 13
Views: 8007

Re: Get build data

I have just tried this and I get a error "Unexpected 'Application' in frmSplash.Class:15 any idea what this means
Please post your program, so we can see what happens.
by cogier
Wednesday 24th February 2021 2:41pm
Forum: General
Topic: Get build data
Replies: 13
Views: 8007

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 ...
by cogier
Tuesday 23rd February 2021 5:51pm
Forum: Project showcase
Topic: Colour 'Value' Converter
Replies: 2
Views: 3071

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...
by cogier
Tuesday 23rd February 2021 5:37pm
Forum: General
Topic: Get build data
Replies: 13
Views: 8007

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...
by cogier
Tuesday 23rd February 2021 12:11pm
Forum: General
Topic: Did you know?
Replies: 91
Views: 408262

Re: Did you know?

No I did not know that one. Very useful as I also have run into the same issue. Thanks.
by cogier
Saturday 20th February 2021 11:55am
Forum: Component
Topic: Custom controls problem
Replies: 7
Views: 5809

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/...
by cogier
Thursday 18th February 2021 11:23am
Forum: General
Topic: [Solved] Start up program with variables in line
Replies: 3
Views: 2705

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...
by cogier
Tuesday 16th February 2021 1:57pm
Forum: Web
Topic: Get a download file size before download (gb.net.curl)
Replies: 9
Views: 13626

Re: Get a download file size before download (gb.net.curl)

Ahh yes, we have run into this before. I have corrected your first post. You need to add this: -

Image
by cogier
Tuesday 16th February 2021 1:36pm
Forum: Component
Topic: gb.report2 basics and sqlite3
Replies: 6
Views: 5254

Re: gb.report2 basics and sqlite3

I was looking at gb.report and then discovered this: -

Image

So I have stopped now!