2015년 1월 6일 화요일

TinyDB

I need to create an app where i can select the date, or it selects today's automatically and then
display a code associated to that date. We have an access code for each day and i would like to
pre-program the tinydb with the codes for each day. Is there a way to import the codes as i have 265 codes
to associate with each day of the year.



yes, you can use the file component, see this answer for a similar problem



One way to do what you want to do does not involve a TinyDB at all.

1) Create a csv file with 365 or 366 codes:   xyz, abc2, w5ad3 ....    and use File to load it in a List called    MyCodes.     An easy way to do this is to put all your codes into an editor like Notepad, then select the entire list and drag and drop it into a Text block.       set MyCodes to  ...that Text block.

Then use the Clock component to figure the day of the year (day number).     Use the day number to associate with the items in the list.


댓글 없음:

댓글 쓰기