Search found 187 matches

by grayghost4
Tuesday 2nd April 2024 2:42pm
Forum: General
Topic: [Solved] Get the Previous Sunday from a Date
Replies: 25
Views: 2661

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))
by grayghost4
Saturday 30th March 2024 11:13pm
Forum: General
Topic: [Solved] Get the Previous Sunday from a Date
Replies: 25
Views: 2661

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

how about this :

Public Sub Button1_Click()
Dim d As Date = Date(Now)
Dim iDay As Integer = WeekDay(d)
If iDay = 6 Then iDay = -1    ' ' move Saturday 
Print d
Print DateAdd(d, gb.Day, -(iDay)  -7)
End 


results:

03/30/2024 00:00:00
03/24/2024 00:00:00
by grayghost4
Saturday 30th March 2024 4:44pm
Forum: General
Topic: [Solved] Get the Previous Sunday from a Date
Replies: 25
Views: 2661

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

I may be wrong .. but this seems to get the previous sunday.
But I am probably not understanding what you are trying to do ;)


Print DateAdd(Now, gb.Day, -(WeekDay(Now) + 7))
  
by grayghost4
Thursday 21st December 2023 8:33pm
Forum: General
Topic: Qt6
Replies: 29
Views: 14211

Re: Qt6

I just installed Debian 12 Gnome yesterday and installed Gambas3 ... I get exactly the same result as you did above. my program runs just fine running wayland ... only thing I noticed is the "ME.Center" does not work :) If I switch to X then ME.center work :) mhc@MarvGnome:~$ for s in Qt5C...
by grayghost4
Tuesday 31st October 2023 1:10am
Forum: General
Topic: Advise for a standalone database
Replies: 4
Views: 10223

Re: Advise for a standalone database

this is my SQLite read write Module, Probably very similar to your code : ' Gambas module file '' Module file to handle SQLite file '' SQLite file handeling subroutines '' writen by GrayGhost4 Marvin Clavey June 2022 Public RS As Result Public sadata As String[] Public $con As New Connection Public ...
by grayghost4
Tuesday 29th August 2023 8:58pm
Forum: General
Topic: last post from "Did you know"
Replies: 8
Views: 3409

Re: last post from "Did you know"

Ubuntu is Debian based
by grayghost4
Tuesday 29th August 2023 5:04pm
Forum: General
Topic: last post from "Did you know"
Replies: 8
Views: 3409

Re: last post from "Did you know"

BruceSteers wrote: Tuesday 29th August 2023 4:14pm What system do you have?

is it Ubuntu based?

I just tried it here on LinuxMint and no problems.


Debian 12 wayland KDE
by grayghost4
Tuesday 29th August 2023 12:24pm
Forum: General
Topic: last post from "Did you know"
Replies: 8
Views: 3409

last post from "Did you know"

Did you not consider using the ppa? Keep your Gambas up to date: - Gambas3 Stable Code: Select all sudo add-apt-repository -y ppa:gambas-team/gambas3 && sudo apt-get update && sudo apt-get -y install gambas3 So I thought I would try it . my results : mhc@mhc:~$ sudo add-apt-repositor...
by grayghost4
Thursday 18th May 2023 3:17pm
Forum: General
Topic: Weird problem with editing code from IDE
Replies: 7
Views: 1477

Re: Weird problem with editing code from IDE

Under "EDIT" There is a lock flag ..... that gets me every time :D
by grayghost4
Sunday 9th April 2023 4:25pm
Forum: General
Topic: Opera and cry from the Gambas IDE
Replies: 15
Views: 3041

Re: Opera and cry from the Gambas IDE

Time to remove Gambas .... I will miss it but I don't want a VIRUS on my computer :cry: