Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6977175
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T17:35:31+00:00 2026-05-27T17:35:31+00:00

A real beginner here, I am looking to have a table of static data

  • 0

A real beginner here,

I am looking to have a table of static data with about 300 cells in it. (There will be 12 distinct tables in all)

The user would input two values, the first would indicate the row, and the second would point to the cell within that row, and I want my app to be able to read back the column heading for that row.

What is the best way to have this data stored in my app? Currently the data is in a spreadsheet.

The data looks like:

Index 0,Index 1,Index 2,Index 3 ,Index 4,Index 5,Index 6,Index 7,Index 8,Index 9

10,156,326,614,1261,1890,3639,5800,10253,20914

20,107,224,422,867,1299,2501,3986,7047,14374 …etc.

Where the number at index zero is the name of the row (entered by user) and the numbers after that are the values also entered by the user.

I want the code to take the two numbers (row and value) and then return a string based on the column heading (shown here as index 0 – 9)

the last tricky bit is if the user enters a value that is in between the values give I want it to use the next highest value from the data. E.g. if in row “10” the user inputs 700 I want the code to return the index heading for 1261.

Does that make sense?

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-27T17:35:32+00:00Added an answer on May 27, 2026 at 5:35 pm

    Possibilities are endless…

    • In code as a static 2D array
    • XML
    • JSON
    • Tab Delimited Text File
    • Comma Delimited Text File
    • PList
    • etc.

    All depends on your needs and wants.

    On the CONs for each:

    • Static 2D array may consume some memory every time the app runs…
    • A file will involve some disk IO or processing requirements to read the values out of the file stored in the Bundle.

    On the PROs for each:

    • Data from the static array would be FAST…
    • Updating data in a file could be done on-the-fly over the web.

    You could write a simple routine to dump your spreadsheet into any of the above listed options, so I don’t think that’s a real serious consideration. It’s mostly about what works best for you in terms of size of data and updatability/maintainability.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I'm following a tutorial. (Real World Haskell) And I have one beginner question about
REAL newbie here to Objective C and Cocoa. I have this 'if statement' if
This is a real beginner Hibernate problem. I have a problem with the mappings
I am a beginner and I cannot understand the real effect of the Iterable
Real UID, effective UID, and some systems even have a saved UID. What's the
What real-world projects would you suggest looking through the sources? As I'm learning Java
What real (i.e. practical) difference exists between a static class and a singleton pattern?
The real question: Is there a way to clear certain attributes for all components
I'm a beginner in practical real-world java programming. I don't really understand these basic
I am a C++ beginner. I have the following code, the reult is not

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.