What is the best way to solve my situation:
I have created a guitar fretboard with buttons.
If you click a button, it shows the note name for 1 second. This already works.
But now, I want to be able to show for example all E notes on the fretboard, so i have to make a data thingy, where i can get the information of which button contains a E note.
for each button, i have a procedure when clicked like this:
Code: Select all
Procedure Button1_0(EventType)
If GetGadgetText(Button1_0) = ""
SetGadgetText(Button1_0, "E")
CreateThread(@empty(), Button1_0)
Else
SetGadgetText(Button1_0, "")
EndIf
EndProcedureSo the data i need to store (and retrieve) is like: string-button-note
1 - button1_0-E
1 - button1_1-F
1 - button1_2-F#
1-.....
1-....
2 - button2_1 - B
2 - button2_2 - C
and so on for 6 strings with 12 notes
So for example i want all the E notes on the fretboard on so i need to retrieve from a table which buttons there are with the E notes on which 6 strings.
What is the best way to store this information so i can easaly retrieve/query the data?
should i go for structure or map or list or perhaps a in memory sqlite database ?

