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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T19:22:56+00:00 2026-05-26T19:22:56+00:00

i have function: function getFieldNames(arrayOfRecords) { var theStuff; for (var i = 0; i

  • 0

i have function:

function getFieldNames(arrayOfRecords) {
var theStuff;
for (var i = 0; i = arrayOfRecords.length - 1; i++){
    theStuff = arrayOfRecords[i];
    theList = theStuff.split('" ');
    for (var j = 0; j = theList.length - 1; j++) {
        var v = theList[j].split('="');
        fName1[i][j] = v[0];
        }
    }
return fName1;
}

the argument arrayOfRecords is an array, and i dont know how to setup to the ‘theStuff’ variable an array element? When I do like it is above, i get something stupid.

can anyone help me? 🙂

  • 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-26T19:22:57+00:00Added an answer on May 26, 2026 at 7:22 pm

    There may be other problems but the one that leaps out at me is your for loop header:

    for (var i = 0; i = arrayOfRecords.length - 1; i++)
    

    The second part should be a condition, which when evaluated to false will stop the loop from running. What you probably wanted was:

    for (var i = 0; i < arrayOfRecords.length; i++)
    

    So when i is not less than arrayOfRecords.length, the loop will stop. Alternatively (to keep the - 1, but I tend to use the above version):

    for (var i = 0; i <= arrayOfRecords.length - 1; i++)
    

    The same goes for the nested loop.

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

Sidebar

Related Questions

I have function source stored in a string eg.: var source=(function(){return Math.sin(x);}); I want
In web service I have function that return bytes array. Now, I call it
i have function public Menu Details(int? id) { return _dataContext.Menu.Include(ChildMenu).FirstOrDefault(m => m.MenuId == id);
I have function as follows: Mask (sender) { var error= false; var regex =
I have function like this in my header function bingframe() { var iframe =
i have function <script type=text/javascript> $(function () { $(#search).click(function() { var text = $(#searchText).val();
I have: function getRandomInt(min, max){ return Math.floor(Math.random() * (max - min + 1)) +
I have function to unlock data sets via an API function unlockData() { var
Hello: I have function like this one function query($query) { if (in_array($query,$this->queries)) { return
Here's the code I have: function transferq() { if (document.forms[0].elements['return'].checked == true) { document.forms[0].elements['returnhour'].disabled

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.