Search found 168 matches

by thatbruce
Wednesday 10th April 2024 10:02am
Forum: General
Topic: Suggestions for checking that all array values are unique
Replies: 7
Views: 304

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: 304

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: 304

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: 182

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: 731

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: 731

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: 731

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: 1738

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] Get the Previous Sunday from a Date
Replies: 25
Views: 1738

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: 3920

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"...