Search found 1113 matches

by cogier
Sunday 1st May 2022 12:11pm
Forum: Project showcase
Topic: GauchoSketch a CAD to make simple diagrams.
Replies: 2
Views: 2856

Re: GauchoSketch a CAD to make simple diagrams.

There is some very nice programming here. I have used 2D CAD in a professional capacity, so I was looking for various features. Here are some of my observations: - About - Clicking this got no response, a project can live or die on its documentation. Line Styles and line Weights - Can you indicate w...
by cogier
Saturday 30th April 2022 12:46pm
Forum: Web
Topic: Anybody having issue with web-debugging?
Replies: 4
Views: 6956

Re: Anybody having issue with web-debugging?

You need to switch on the HTTP server. From the Debug Menu select Configuration.. and turn on the HTTP server. https://www.cogier.com/gambas/WebServer.png I changed your code slightly: - ' Gambas class file Export Public Sub WebButton1_Click() Message("This is a message box.") End Public S...
by cogier
Friday 29th April 2022 1:46pm
Forum: Web
Topic: Anybody having issue with web-debugging?
Replies: 4
Views: 6956

Re: Anybody having issue with web-debugging?

Can you post an example of your code?
by cogier
Thursday 21st April 2022 11:55am
Forum: Beginners
Topic: Using DrawArea - Simplified
Replies: 19
Views: 6869

Re: Using DrawArea - Simplified

These are really nice. Just shows what can be done.

Minor point regarding using the Quit command see here.
by cogier
Thursday 21st April 2022 11:45am
Forum: Beginners
Topic: Registering for the Farm
Replies: 2
Views: 1334

Re: Registering for the Farm

Hi daveanderton and welcome to the forum.

There is no need to register to see the examples. Just open the Farm from the Gambas menu: -

Image

Or you can see the contents of the Farm on Gambas.One here. (Best results with Firefox)
by cogier
Monday 18th April 2022 11:08am
Forum: General
Topic: DateAdd problem with month end
Replies: 11
Views: 3737

Re: DateAdd problem with month end

Well there is something wrong somewhere as your examples work as expected at this end, QT, GTK returned the same results.

Image

Image
by cogier
Sunday 17th April 2022 6:27pm
Forum: General
Topic: DateAdd problem with month end
Replies: 11
Views: 3737

Re: DateAdd problem with month end

What do you get running the following?: -
  Dim dDate As Date

  dDate = Date(Now) - Day(1)
  Print "Yesterday was " & Format(dDate, "mm/dd/yyyy")
Note that the code in my other posts were using Day/Month/Year format not, as in this example, the USA date format.
by cogier
Sunday 17th April 2022 6:17pm
Forum: Beginners
Topic: Form Background Picture - Scale or Tile
Replies: 9
Views: 3659

Re: Form Background Picture - Scale or Tile

On your main computer I think you are running a Debian distribution. If you open Terminal and type lsb_release -a I suspect you will be told you are running Debian buster . I may be wrong! Debian buster has Gambas 3.12.2 in its repos. I have just uploaded the latest recommended Raspbian OS (32 bit) ...
by cogier
Sunday 17th April 2022 4:54pm
Forum: General
Topic: DateAdd problem with month end
Replies: 11
Views: 3737

Re: DateAdd problem with month end

Hi greyghost4, The idea was to get the beginning of the following month and go back 1 day, hence - Day(1) I tried your code: - dDate = Date(iYear, iMonth, 1) - Day(2) Result: - 30/01/2022 -- Sunday 30 January 2022 27/02/2022 -- Sunday 27 February 2022 30/03/2022 -- Wednesday 30 March 2022 29/04/2022...
by cogier
Sunday 17th April 2022 11:27am
Forum: General
Topic: DateAdd problem with month end
Replies: 11
Views: 3737

Re: DateAdd problem with month end

Not sure that this is 'elegant', but it works: - Public Sub Form_Open() Dim iLoop, iMonth As Integer Dim iYear As Integer = 2022 Dim dDate As Date For iLoop = 2 To 13 If iLoop = 13 Then iYear += 1 iMonth = 1 Else iMonth = iLoop End If dDate = Date(iYear, iMonth, 1) - Day(1) Print Format(dDate, "...