Search found 168 matches
- Wednesday 10th April 2024 10:02am
- Forum: General
- Topic: Suggestions for checking that all array values are unique
- Replies: 7
- Views: 2519
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...
- Wednesday 10th April 2024 2:17am
- Forum: General
- Topic: Suggestions for checking that all array values are unique
- Replies: 7
- Views: 2519
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...
- Tuesday 9th April 2024 9:03am
- Forum: General
- Topic: Suggestions for checking that all array values are unique
- Replies: 7
- Views: 2519
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
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
- Tuesday 2nd April 2024 10:14pm
- Forum: Beginners
- Topic: Problems with importing SQLite3 with Exec in Gambas
- Replies: 2
- Views: 316
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
b
- Tuesday 2nd April 2024 11:24am
- Forum: General
- Topic: Problem with menu in gridview
- Replies: 14
- Views: 1169
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.
b
b
- Sunday 31st March 2024 11:08am
- Forum: General
- Topic: Problem with menu in gridview
- Replies: 14
- Views: 1169
Re: Problem with menu in gridview
Mmmyes. I was wondering about that.BruceSteers wrote: ↑Sunday 31st March 2024 10:12am And If i use Menu event i get a 3 hits not just one event...
b
- Sunday 31st March 2024 9:45am
- Forum: General
- Topic: Problem with menu in gridview
- Replies: 14
- Views: 1169
Re: Problem with menu in gridview
[Redacted. We use a customized version of the gridview that makes all I said nonsense. Sorry!]
- Wednesday 27th March 2024 11:22am
- Forum: General
- Topic: [Solved] Get the Previous Sunday from a Date
- Replies: 25
- Views: 5529
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.
- Monday 25th March 2024 9:56pm
- Forum: General
- Topic: [Solved] Get the Previous Sunday from a Date
- Replies: 25
- Views: 5529
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.
- Friday 8th March 2024 12:27pm
- Forum: General
- Topic: Raspbian Bookworm issues
- Replies: 6
- Views: 4531
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"...