How to start / Which datatypes

RiverRaid

Active Member
Licensed User
Longtime User
Hi!

Maybe its an easy question, but I'm now really stuck and I don't want to begin a new project and 3 Weeks later I have to change everything because I started the wrong way...

What i want to do:
I have a calendar-view on the Activity. If a user clicks on a date a new panel will be shown with a lot of inputs. I created a Type for this:
B4X:
 Type Eintrag(Datum As String, FunFactor As Int, Times As Int, Duration As Int, practices() As List ,  Positions() As List , Place As Int)

Practices should be connected with a dynamic array. One or more of the Items should be usable. (e.g. SitUps, Running..)
The same with Positions.

I do also want to display some Statistics (with your excellent module .
These statistics should be displayable (on a per Month basis, one entry per day:
How often, Funfactor, Duration, each entry in Positions, practices and Places.

And I want to implement an overall Statistic as well (how often at which place, how often which practice etc...


And now I'm stuck or better - I have no idea- which type of datastructure I should use for this :sign0104:. It should be fast and efficient, so i think that maps wouldn't be the best deal, right?

THANK YOU!!
 

RiverRaid

Active Member
Licensed User
Longtime User
Thank you

To get it right, I create 3 Databases
One With the Positions
One with the Practices
and One with the Entrys themselves.

And in code, I merge them all..
 
Upvote 0
Cookies are required to use this site. You must accept them to continue using the site. Learn more…