Search found 161 matches

by thatbruce
Wednesday 27th March 2024 11:22am
Forum: General
Topic: [Solved - sort of] Get the Previous Sunday from a Date
Replies: 16
Views: 337

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

No more clues from me. If you want us to writ your damn pos system, send money. :x
by thatbruce
Monday 25th March 2024 9:56pm
Forum: General
Topic: [Solved - sort of] Get the Previous Sunday from a Date
Replies: 16
Views: 337

Re: Get the Previous Sunday from a Date

The last day of the month is the 1st day of the next month minus one day.
by thatbruce
Friday 8th March 2024 12:27pm
Forum: General
Topic: Raspbian Bookworm issues
Replies: 6
Views: 3597

Re: Raspbian Bookworm issues

Bejeezus its nice to be right. How long ago did I tell you that "wayland just sucks". There has been much in my inbox recently about how grate (intentional) wayland is. Unfortunately they don't reply when I list the things that "just don't work", apart from one "expert"...
by thatbruce
Monday 26th February 2024 4:41am
Forum: General
Topic: [Solved] TabPanel1 bad index
Replies: 4
Views: 408

Re: TabPanel1 bad index

what he said.
But also..
you cannot remove a tab panel if it has stuff inside it.
b
by thatbruce
Saturday 24th February 2024 1:20am
Forum: Beginners
Topic: First Program Test
Replies: 7
Views: 688

Re: First Program Test

and a tip from me (that some may have heard before :D ) Read the help pages until your eyes bleed. Read every word. It is succinct and can easily be misunderstood if your mind skips words or think they mean something from some other language. For example look at one of the Balloon functions, say Bal...
by thatbruce
Saturday 17th February 2024 7:19am
Forum: General
Topic: Can GAMBAS be an alternative to Visual Basic (or maybe Visual Foxpro)?
Replies: 10
Views: 980

Re: Can GAMBAS be an alternative to Visual Basic (or maybe Visual Foxpro)?

I'd say your best chance is to find an OBCD driver for dbase and use that. (Actually, I'd really say dbase? Is that still around? and if so why?) Having said that let me now say "ODBC" is the worst possible way to access a database." You could learn how to write Gambas code to access ...
by thatbruce
Wednesday 7th February 2024 8:31am
Forum: General
Topic: getting bits from an integer (Mouse.State)
Replies: 3
Views: 532

Re: getting bits from an integer (Mouse.State)

Use the AND If (Mouse.State AND 1) then the left button was pressed. If (Mouse.State AND 2) then the middle button was pressed. If (Mouse.State AND 4) then the right button was pressed. If (Mouse.State AND 3) then the left and middle buttons were pressed. If (Mouse.State AND 5) then the middle and r...
by thatbruce
Tuesday 6th February 2024 7:11am
Forum: Beginners
Topic: New to Gambas.. seek some help
Replies: 13
Views: 1801

Re: New to Gambas.. seek some help

re database support. Gambas supports quite a lot of database handling (and it is incredibly fast) but the fully integrated database features are not (ahem) sophisticated. If you want to use more advanced SQL techniques almost anything can be done but you have to "do it yourself". For examp...
by thatbruce
Tuesday 6th February 2024 7:03am
Forum: Beginners
Topic: New to Gambas.. seek some help
Replies: 13
Views: 1801

Re: New to Gambas.. seek some help

The "usual" way to set the number of decimal points displayed in a control, whether it's a numeric or textual control is to use the Round() function when setting the value. This wont work for controls that only display or handle integers of course. The "usual" way of doing a deci...
by thatbruce
Tuesday 30th January 2024 6:14am
Forum: Project showcase
Topic: Blockski+ , like Klotski but with a board editor.
Replies: 43
Views: 6880

Re: Blockski+ , like Klotski but with a board editor.

Thus far, this works much better under qt5. The timer is w a y out! And I got an overflow in Board1_Win() at the DateDiff. I don't think the timer should start until the player tries to move the first tile. It was counting while I was adjusting the tile size. I can't get the editor to save my new la...