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

  • Home
  • SEARCH
  • 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 8719861
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T06:53:58+00:00 2026-06-13T06:53:58+00:00

I have var myArrayVariable1 = new Array(); var myStringVariable1 = ‘myArrayVariable1’; var myStringVariable2 =

  • 0

I have

var myArrayVariable1 = new Array();
var myStringVariable1 = 'myArrayVariable1';
var myStringVariable2 = 'myArrayVariable2';

Is there any way to figure out if one of the strings match the variables name? In case above, myStringVariable1.Value = myArrayVariable1.VariablesName

My conundrum:
I have around 100 objects that are unique to each user.
I need to update each object each minute

Each object is named as the database id; javascript would have to locate the object, delete it and then re-create it using new values (these are pulled via json)

So I need to locate the object (using the string that I have gotten from the json), then I need somehow call that object to delete it…
kind of stuck here.

In abstract I am looking for something like this:

foreach(object obj in allObjects){
  if (obj.ActualName==="something"){
   obj.Delete();
 }
}

After some thinking, and no answer to my question, I am thinking about using some sort of dictionary (a hashmap equivalent) to track all the objects

  • 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-13T06:54:00+00:00Added an answer on June 13, 2026 at 6:54 am

    if the variable is part of an object, you can traverse on it :

    var obj {
        myVar: 'hello'
    };
    for (var varName in obj) {
        alert(varName + ' = ' + obj[varName]);
    }
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Let's say you have var funct=function(a,b){ return a+b; }; console.log(funct); Is there any way
If i have: var obj={ a:function(){obj.b();}, b:function(){this.a();} }; is there any difference in calling
I have var items = new Array('0,364,2113,0','0,0,0,0'); and I want to convert it to
Say I have var i = 987654321; Is there an easy way to get
If I have: var myObjects = new ConcurrentBag<object>(); And try to remove objects via:
Imagine I have var points = new Point[] { new Point(1, 2), new Point(2,
I have this: var blockRegEx = new Regex((proc sql;)(.*?)(quit;), RegexOptions.IgnoreCase | RegexOptions.Multiline); but it
Well i have var message , which has any type of character... I replace
i have a varable: var name = name; this will be inside an array
Here is what I have: var listAddresses = GetAddresses().ToList(); return Json(new JsonResult { Data

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.