Search found 170 matches

by thatbruce
Tuesday 30th April 2024 12:34pm
Forum: The Gambas IDE
Topic: Wayland and gambas
Replies: 4
Views: 94

Re: Wayland and gambas

Well, given his comments re "descriptive" rather than "prescriptive" I would guess both. Someone on the mailing list commented that it is a bit like html and look at the manure that has turned into these days. Just to be an old fogie I will say that the major problem is that the ...
by thatbruce
Tuesday 30th April 2024 12:28pm
Forum: General
Topic: Live video feed?
Replies: 6
Views: 206

Re: Live video feed?

There is/was a farm project that played the usb camera video in live mode. I cant remember who wrote it or what it was called. If you could find it, it might provide some clues. I used it in a similar situation some years ago when I had a local idiot who kept stealing the wheely bins from the footp...
by thatbruce
Wednesday 10th April 2024 10:02am
Forum: General
Topic: Suggestions for checking that all array values are unique
Replies: 7
Views: 2708

Re: Suggestions for checking that all array values are unique

Brilliant! (I think you might be getting a bit good with these prawns ;) ) In fact I can do this all inline in my project as I sort the array just beforehand so I can check that it is monotonic. This is all to do with an old problem regarding keeping two arrays synchronized. I have run it through th...
by thatbruce
Wednesday 10th April 2024 2:17am
Forum: General
Topic: Suggestions for checking that all array values are unique
Replies: 7
Views: 2708

Re: Suggestions for checking that all array values are unique

Ta. I wasn't clear enough. I just need to check it not replace it. So have gone with Public Function CheckArrayUniqueness(aList as Integer[]) As Boolean Dim aNewList As New Integer[] For c As Integer = 0 To aList.Max If Not aNewList.Exist(aList[c]) Then aNewList.Add(aList[c]) Next Return aNewList.Co...
by thatbruce
Tuesday 9th April 2024 9:03am
Forum: General
Topic: Suggestions for checking that all array values are unique
Replies: 7
Views: 2708

Suggestions for checking that all array values are unique

Hi all.

Looking for suggestions. My Integer[] must only contain unique values. I just can't think of a really good way that does not involve a lot of unnecessary statistical manipulations.

tia
b
by thatbruce
Tuesday 2nd April 2024 10:14pm
Forum: Beginners
Topic: Problems with importing SQLite3 with Exec in Gambas
Replies: 2
Views: 355

Re: Problems with importing SQLite3 with Exec in Gambas

Thats because ".import" is an sqlite (the terminal front end) command, not an SQL verb. The gb.db.sqlite component works with the sqlite library, not the front end. You need to send the command to the front end via Shell or Exec.
b
by thatbruce
Tuesday 2nd April 2024 11:24am
Forum: General
Topic: Problem with menu in gridview
Replies: 14
Views: 1329

Re: Problem with menu in gridview

Ah Grasshopper! Again you have failed to respect history. Olde tyme myce had only two buttons (there is some pre-history regarding a "one button mouse" but that can be disregarded) hence the numbering.
:| :twisted: :D
b
by thatbruce
Sunday 31st March 2024 11:08am
Forum: General
Topic: Problem with menu in gridview
Replies: 14
Views: 1329

Re: Problem with menu in gridview

BruceSteers wrote: Sunday 31st March 2024 10:12am And If i use Menu event i get a 3 hits not just one event...
Mmmyes. I was wondering about that.

b
by thatbruce
Sunday 31st March 2024 9:45am
Forum: General
Topic: Problem with menu in gridview
Replies: 14
Views: 1329

Re: Problem with menu in gridview

[Redacted. We use a customized version of the gridview that makes all I said nonsense. Sorry!]
by thatbruce
Wednesday 27th March 2024 11:22am
Forum: General
Topic: [Solved] Get the Previous Sunday from a Date
Replies: 25
Views: 7767

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