Search found 1116 matches

by cogier
Tuesday 30th April 2024 9:07am
Forum: The Gambas IDE
Topic: Wayland and gambas
Replies: 2
Views: 23

Re: Wayland and gambas

Does this mean you can't control items within your program, or you can't control where the program is displayed on the screen, or both?
by cogier
Friday 26th April 2024 2:41pm
Forum: General
Topic: Converting UTC time
Replies: 9
Views: 228

Re: Converting UTC time

I'm reading info from a file and get date and time information on the form "YYYY-MM-DD"T"HH:MM:SS"Z (an example: 2024-04-27T09:25:00Z).
What does this date refer to? It looks like it's the file date. What time zones are involved?
by cogier
Thursday 25th April 2024 2:57pm
Forum: Beginners
Topic: Anyone using dot notation with strings?
Replies: 4
Views: 1378

Re: Anyone using dot notation with strings?

But if I start typing .Len, then no such warning is shown on the help screen (https://gambaswiki.org/wiki/comp/gb/_boxedstring/len).
I have added the same warning to the Wiki. This should show up in a day or 2.
by cogier
Tuesday 16th April 2024 2:23pm
Forum: Lounge
Topic: ChatGPT: something to play with over Christmas
Replies: 11
Views: 23931

Re: ChatGPT: something to play with over Christmas

It was a simple request to see if Bing could create Gambas code. I asked for Gambas code to display ASCII characters.
by cogier
Sunday 14th April 2024 10:17am
Forum: Lounge
Topic: Playground is broken
Replies: 8
Views: 2544

Re: Playground is broken

OK. I have fixed it again. I'm going to have to do something with it to stop it breaking all the time.
by cogier
Wednesday 3rd April 2024 2:10pm
Forum: General
Topic: [Solved] Get the Previous Sunday from a Date
Replies: 25
Views: 7612

Re: [Solved - sort of] Get the Previous Sunday from a Date

Like a dog with a bone ... I can't let go until I have finished it :lol: Dim iDay As Integer = WeekDay(Now) If iDay = 6 Then iDay = -1 ' Move sat to begining of week Print Date(DateAdd(Now, gb.Day, -(iDay + 1) - gb.Week)) Woof! Woof! Sorry, but it returns the wrong Sunday. Using today's date, it re...
by cogier
Sunday 31st March 2024 11:31am
Forum: General
Topic: [Solved] Get the Previous Sunday from a Date
Replies: 25
Views: 7612

Re: [Solved - sort of] Get the Previous Sunday from a Date

That works for me.
by cogier
Saturday 30th March 2024 4:55pm
Forum: General
Topic: [Solved] Get the Previous Sunday from a Date
Replies: 25
Views: 7612

Re: [Solved - sort of] Get the Previous Sunday from a Date

I may be wrong .. but this seems to get the previous sunday. Print DateAdd(Now, gb.Day, -(WeekDay(Now) + 7)) This doesn't quite get it right. Using the following code I get the Sunday before last Sunday! Print Now Print DateAdd(Now, gb.Day, -(WeekDay(Now) + 7)) Result:- 30/03/2024 16:51:29 17/03/20...
by cogier
Saturday 30th March 2024 1:34pm
Forum: Lounge
Topic: Playground is broken
Replies: 8
Views: 2544

Re: Playground is broken

The playground is in a Digital Ocean Droplet. This is basically a headless Ubuntu distro with Gambas installed via the ppa. So yes, they link to Gambas One. The main page does have a link to the Playground and the Farm. https://wordpress.gambas.one/
by cogier
Saturday 30th March 2024 8:48am
Forum: Lounge
Topic: Playground is broken
Replies: 8
Views: 2544

Re: Playground is broken

It's not the Development Team that needs to look at this, it's me. I will sort it as.soon as I can.

10:10am 30/03/2024
Now fixed

https://gambas.one/playground/