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 8776469
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T19:04:08+00:00 2026-06-13T19:04:08+00:00

I have had a hard time finding a newbie friendly example of accessing the

  • 0

I have had a hard time finding a newbie friendly example of accessing the Application Object. I have few things ( arrays ) I would like to store in the Application Object to keep as persistent data for about 2 hours until AppRecycle.

Anyhow, I know how to set an Application Object variable this way:

// One way
String[] users = new String[1000];
Application["users"] = users;

// Another way
Application.Add("users", users);

However I do not know how to access these variables once they are inside the Application Object. There is a Getter method Get. However it requires int index. The other method, Contents, get’s everything, not just my array.

Here I try to retrieve my String[] array, but it gives me a error that I am trying to convert Object to String.

String[] usersTable = Application["users"];
// Since this is an object i also tried Application.users but gives error
  • 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-06-13T19:04:10+00:00Added an answer on June 13, 2026 at 7:04 pm

    In Application you only save type “object”. You need to cast to the desired type

    string[] usersTable = (string[])Application["users"];
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have this simple problem but I had a hard time of finding a
I'm using the jQuery plugin for TinyMCE and have had a hard time trying
I have a malformed page to scrape, and have had a hard time getting
I've had a hard time finding anything like what I'm trying to accomplish, seems
I'm new to programming and have had a hard time understanding recursion. There's a
I have always had a hard time understanding the real value of Interfaces when
I have had this problem crop up a few times and I can't figure
I have had several situations when i would like to do that. This could
I have had a few problems getting this right, so I wanted to ask
I am making an object tracking application. I have used Emgucv 2.1.0.0 to load

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.