how to get from such string ' name1{value1,value2};name2{value3}; ... nameN{value12, valueN} '
Array or arrays in such form: Array = {string, int};{string, int};{string, int};
like this:
{
{ name1 ; value1}
{ name1 ; value2}
{ name2 ; value3}
...
{ nameN ; valueN}
}
in C# (.net)?
...
I must be missing something simple here, but I'm having trouble retrieving data from a JSON array response. I can access objects with identifiers that start with letters, but not ones that start with numbers.
For example, I can access
data.item[0].specs.overview.details
But I can't access
data.item[0].specs.9a99.details
If anyone...
I'm using vb.net 2008 edition and i was wondering if there a way to convert an array type to another array type. For instance say i dim an array as string and then want to convert the array to the integer data type for sorting, how would i go about this?
...
I'm retrieving an array of objects from a hidden html input field. The string I'm getting is:
"{"id":"1234","name":"john smith","email":"[email protected]"},{"id":"4431","name":"marry doe","email":"[email protected]"}"
Now I need to pass this as an array of objects again. How do I convert this string into array of objects?
...
I have a List<T> that I want to be able to copy to an array backwards, meaning start from List.Count and copy maybe 5 items starting at the end of the list and working its way backwards. I could do this with a simple reverse for loop; however there is probably a faster/more efficient way of doing this so I thought I should ask. Can I use...
Let's say I needed to make a series of String[] objects.
I know that if i wanted to make a string array called "test" to hold 3 Strings I could do
String[] test = new String[3];
But let's say I needed to make a series of these arrays and I wanted them to be named, 1,2, 3, 4, 5... etc. For however many I needed and I didn't know how m...
I'm trying to use a SQL Array type with PostgreSQL 8.4 and the JDBC4 driver.
My column is defined as follows:
nicknames CHARACTER VARYING(255)[] NOT NULL
and I'm trying to update it thusly:
row.updateArray("nicknames",
connection.createArrayOf("CHARACTER VARYING", p.getNicknames().toArray()));
(p.getNicknames() r...
I'm trying to sort a multidimensional object, and, after looking on php.net and around here, I get that I should write a function that I can then call via usort. I'm having some trouble with the syntax. I haven't ever written something this complicated before, and trying to figure it out feels like a mindbender...
I'm working with th...
I m trying to make an array of labels
each label has a differented value which come out of a function.
I dont know the exact no. of labels to be used
i mean there could be any no of values to b printed
Therefore, please help me do so
...
In what cases I should use Array(Buffer) and List(Buffer). Only one difference that I know is that arrays are nonvariant and lists are covariant. But what about performance and some other characteristics?
...
Hey Guys,
i hope someone can help me out on this one here.
I use several associative arrays in my php application and i'm using php documentor to comment my sources. I never really did specified comments for the arrays in an array, but now i need to do that and dont know how.
$array = array('id' => 'test', 'class' => 'tester', 'options'...
Hi,
I would like to populate an 2 dimensional array, from a vector.
I think the best way to explain myself is to put some examples (with a array of [3,5] length).
When vector is: [1, 0]
[
[4, 3, 2, 1, 0],
[4, 3, 2, 1, 0],
[4, 3, 2, 1, 0]
]
When vector is: [-1, 0]
[
[0, 1, 2, 3, 4],
[0, 1, 2, 3, 4],
[0, 1, 2, 3, 4]
]
...
Hello,
I have an union X. It's size is 64bits. How can I write (if possible) its declaration if I want to access those 64 bits as:
1. 4 int16_t: p,q,r,s;
2. Array of 4 int16_t: a[4]
3. 2 int32_t: n, m;
4. Array of 2 int32_t: b[2]
5. 1 int64_t z;
...
Given the following XML structure:
<courses>
<course>
<title>foo</title>
<description>bar</description>
</course>
...
</courses>
How could I create an array of dictionaries such that each dictionary contains all the element/value pairs within a course?
What I have right now generates an array whose elements contain a si...
I have an array where the order of the objects is important for when I finally output the array in a document. However, I'm also sorting the array in a function to find the highest value. The problem is that I after I run the function to find the highest value, I can't get the original sort order of the array back.
// html document
va...
I am using regular expressions in php to match postcodes found in a string.
The results are being returned as an array, I was wondering if there is any way to assign variables to each of the results, something like
$postcode1 = first match found
$postcode2 = second match found
here is my code
$html = "some text here bt123ab and an...
I'm trying to create an array to use for a curl_multi_exec, but I can't seem to create the array properly.
Here is my code:
$SQL = mysql_query("SELECT url FROM urls") or die(mysql_error()); //Query the shell table
while($resultSet = mysql_fetch_array($SQL)){
...
Hey.
I am trying to find an item in a NSMutableArray from it's value, only to find its indexPath.
I have absolutely no idea of how to do this, as I am very new to programming in general.
Thanks!
...
Simple question, how do I convert an associative array to variables in a class? I know there is casting to do an (object) $myarray or whatever it is, but that will create a new stdClass and doesn't help me much. Are there any easy one or two line methods to make each $key => $value pair in my array into a $key = $value variable for my cl...
Hi, i'm trying to do some kind of Gallery-Turn Over Script with jQuery. Therefor i got an array with - let's say 13 - images:
galleryImages = new Array(
'images/tb_01.jpg',
'images/tb_02.jpg',
'images/tb_03.jpg',
'images/tb_04.jpg',
'images/tb_05.jpg',
'images/tb_06.jpg',
'images/tb_07.jpg',
'images/tb_08.jpg',
'images/tb_09.jpg',
'imag...