Search found 48 matches

by AndyGable
Sunday 28th February 2021 8:23pm
Forum: General
Topic: [Solved] Workspace1 Question
Replies: 1
Views: 38

Re: Workspace1 Question

Just to update everyone I have sorted this error I forgot to set the Workspace1 Public option to true
by AndyGable
Friday 26th February 2021 9:53pm
Forum: General
Topic: [Solved] Workspace1 Question
Replies: 1
Views: 38

[Solved] Workspace1 Question

Hi All, Was wondering if someone could explain what this error message mean that I am getting so far this is what I have when my application starts it load into a Workspace (the workspace is on FrmBackground) FrmSignedoff and this displays correctly. but when I Press the A key to show the next form ...
by AndyGable
Wednesday 24th February 2021 9:16pm
Forum: General
Topic: Get build data
Replies: 13
Views: 146

Re: Get build data

Hi Cogier, Thanks so much for sorting my code I am still finding myself working in VB.net (as I am porting my application across from that to Gambas) I use to work in VB6 for a long time and then moved to vb.net I should have moved to Gambas then but for some reason I moved to .NET (big mistake) now...
by AndyGable
Wednesday 24th February 2021 3:20pm
Forum: General
Topic: Get build data
Replies: 13
Views: 146

Re: Get build data

' Gambas class file Public Sub Form_Open() Me.labApplicationVersion.Text = "Application Version : " & Application.Version getBuildDate End Private Sub getBuildDate() Dim sText As String = "no " Dim spath As String = Application.Path & "/" Application.Name & ".Gambas" If Exist(sPath) Then sPath = Fo...
by AndyGable
Wednesday 24th February 2021 2:53pm
Forum: General
Topic: Get build data
Replies: 13
Views: 146

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 &/ Applica...
by AndyGable
Wednesday 24th February 2021 11:05am
Forum: General
Topic: Get build data
Replies: 13
Views: 146

Re: Get build data

It might be an even better idea to use Stat() on one of the exes internal files rather than the actual exe , I'm not sure If modified date if exe can change but the file ./.gambas/FMAIN For example will be present and its date should stay the same even if the exe changes. Thanks Bruce I shall try t...
by AndyGable
Tuesday 23rd February 2021 9:51pm
Forum: General
Topic: Get build data
Replies: 13
Views: 146

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 IDE or when ...
by AndyGable
Tuesday 23rd February 2021 5:22pm
Forum: General
Topic: Get build data
Replies: 13
Views: 146

Get build data

Hi everyone,

Is it possible in Gambas to get the build date and version number and show it on a label?

I can do this in vb.net I just wondered if it something you can do in Gambas.
by AndyGable
Saturday 20th February 2021 4:09pm
Forum: General
Topic: [Solved] Help with sending Hex to serial port
Replies: 9
Views: 125

Re: Help with sending Hex to serial port

To all, Thank you for the advice on this I have managed to create a small list of commands like this Public strInit As String = Chr(&H1B) & Chr(&H40) and I can send them with in one send command now. I can clear the screen print the text and return the cursor to the home position (never could get th...
by AndyGable
Saturday 20th February 2021 2:48pm
Forum: General
Topic: [Solved] Help with sending Hex to serial port
Replies: 9
Views: 125

Re: Help with sending Hex to serial port

Would that work for the following Commands ...... Thanks for the advice so far on this project Sorry, I didn't understand if you solved it. Sorry Vuott I have the Clear command working but you said this was only a byte so do I send the command "1F 0D" (for example as it has more to it) does it stil...