Search found 173 matches

by Quincunxian
Saturday 13th April 2024 10:19pm
Forum: General
Topic: Suggestions for checking that all array values are unique
Replies: 7
Views: 282

Re: Suggestions for checking that all array values are unique

Replied to an earlier version of the code Doh.
by Quincunxian
Wednesday 10th April 2024 10:57pm
Forum: General
Topic: Suggestions for checking that all array values are unique
Replies: 7
Views: 282

Re: Suggestions for checking that all array values are unique

If you want the check to fail on the first detection of a duplicate, it may be better to do the check with a loop/repeat rather than a For/next so that it drops as soon as it fails rather than running through the entire array.
It may shave off some more time in the process.
by Quincunxian
Friday 1st December 2023 10:19pm
Forum: Project showcase
Topic: Eight-Queen Puzzle Simulator on GAMBAS
Replies: 1
Views: 5249

Re: Eight-Queen Puzzle Simulator on GAMBAS

For others (like me) who have never heard of the eight queen puzzle, here is a Wikipedia Link: Eight Queen Puzzle
by Quincunxian
Friday 3rd November 2023 2:16am
Forum: General
Topic: find a control
Replies: 11
Views: 11644

Re: find a control

Here is a recursive routine to 'reset' a form - normally some sort of maintenance form to add/modify records. It is called after the record is updated, resetting the input fields so new data can be entered. Aspects of the code may be useful if you want to do more than a simple search. It is designed...
by Quincunxian
Monday 30th October 2023 9:49pm
Forum: General
Topic: Advise for a standalone database
Replies: 4
Views: 10160

Re: Advise for a standalone database

Hi Andy. I use SQLite extensively for any project that needs data storage/retrieval. Unless your data set has millions of records, then it should be more than sufficient for the task. How are your SQL skills and do you have a rough design for your database structure? Regardless of size and the under...
by Quincunxian
Monday 23rd October 2023 12:33am
Forum: General
Topic: Music component - Editor Vs Compiled program.
Replies: 3
Views: 5330

Re: Music component - Editor Vs Compiled program.

Thanks for checking. I created a new project, copied in your code with a valid mp3 file and it has the same result - no sound. I checked the status of Music.Playing and it returns true, so this suggests that the component is not in an error state. I created an executable and the music played as expe...
by Quincunxian
Sunday 22nd October 2023 1:43am
Forum: General
Topic: Music component - Editor Vs Compiled program.
Replies: 3
Views: 5330

Music component - Editor Vs Compiled program.

I have a strange issue. I have a number of programs that use the gb.sdl2.audio - Music component. If I use it to play any applicable media in the Editor (on Run application) there is no error and the file does not play. If I compile to executable and then run that, every works as expected. I've trie...
by Quincunxian
Tuesday 17th October 2023 12:25am
Forum: General
Topic: Post a screenshot
Replies: 18
Views: 19639

Re: Post a screenshot

Parallaxis - Javigg's Fist Author [ Ian Rendell ]_001.png I'm in the process of developing a tool to write a novel. It has some basic document analysis such as checking for 'poor use' words, word frequency and use of cliche phrases. You can create story detailed characters with a reference image as...
by Quincunxian
Saturday 10th June 2023 10:59pm
Forum: General
Topic: File pattern
Replies: 10
Views: 3621

Re: File pattern

I use this setup in a 'toolbox' class that deals with files & folders. Public SelectedFilter As String[] Public FilterFile As String[] = ["*.*", "All Files"] Public FilterImage As String[] = ["*.png;*.jpg;*.jpeg;*.bmp;*.webp;", "Picture files"] Public Filt...
by Quincunxian
Thursday 13th April 2023 11:16pm
Forum: General
Topic: [Solved] SQL Help
Replies: 9
Views: 2535

Re: SQL Help

Hi Andy, That line is just getting the record count of the table. Normally, you would use SELECT COUNT(*) AS TotalRecords FROM TableName MySQL reference HERE This failed for me when I did some initial testing and I simply put in a count of the Primary Key as a substitute for the field to be counted....