473,413 Members | 1,727 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,413 software developers and data experts.

How to create multi-deimensional array?

I am trying to create a multidimensional array and have zero experience with it. Right now, I am currently inserting all of my data into a string which is formatted into a table. I would like to insert my data into an array so that I can sort it. I want to insert my data into an array like this:

row1: item.name item.size item.color item.price item.quantity
row2: item.name item.size item.color item.price item.quantity

Below is the code that I use to put it all into one string:

Expand|Select|Wrap|Line Numbers
  1.     for( var current in me.items ){  
  2.         var item = me.items[current]; 
  3.  
  4.         itemsString = itemsString + "<TR><TD>" + item.name + "</TD><TD>" + item.size + "</TD><TD>" + item.color + "</TD><TD>$" + item.price + "</TD><TD>" + item.quantity + "</TD><TD>$" + item.price * item.quantity + "</TD></TR><br>";
  5.  
  6.         }
  7.  
Dec 3 '10 #1
1 1327
I have solved my problem for now. Thank you.
Dec 3 '10 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

1
by: Atul Kshirsagar | last post by:
Hello, GIL prevents my C++ application embedding and extending python to scale even though I spawn multiple C++ threads. I read lot of references on internet about using multiple processes rather...
2
by: JohnFol | last post by:
I know Windows / SQL etc can utilise multiple processors. In the good old days of coding, you simply wrote the .EXE and Windows would run it on a single processor (or a given processor for...
4
by: news.microsoft.com | last post by:
I am moving a classic ASP app to ASP.NET (c#). It is a series of pages that collect data, validtae the data and move to the next form. I used response.redirect in the classic ASP app but want to...
1
by: Grahammer | last post by:
Is it possible to create a multi element property in VB.Net? Something similar to the "Location" or "Size" property. Each of these has two elements. I'm trying to create an IMAGE property that...
2
by: | last post by:
I need to assign a multiline string to a textbox in design time, my problem is that strings cannot be on more than one line in the editor, even the _ at the end of a line doesn't work with string,...
19
by: Brett Romero | last post by:
Here's a table of data I'm putting into a collection: CodeId CodeGroup CodeSubGroup Type 1 K K.1 Shar1 2 K ...
4
by: Laurence | last post by:
Hi folks, Who knows how to create multi-location/global views? Could you show me some examples? Thanks in advance, Laurence
1
by: =?Utf-8?B?Umljaw==?= | last post by:
Is there a way to create a windows form in c# 2005 with form size larger than the Maximum height of 876? If not then how do I create a multi-page contineous form?
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.