Issue I am stuck. I am trying to copy some selected rows from one column of a 2-D array to a particular column of another 2-D Array. I have tried all my knowledge, but to no avail. Sub TestIndxPst() Dim
Continue readingTag: multidimensional-array
[SOLVED] Create an empty 2d array
Issue I don’t like uninitialized VBA arrays, since it’s necessary to check if array is initialized, each time prior using UBound() or For Each to avoid an exception, and there is no native VBA function to check it. That is
Continue reading[SOLVED] Convert Json with array of arrays to columns in Sql server
Issue I have the json (example) below: ‘{"X":["x1","x2","x3"],"Y":["y1","y2","y3"],"Z":[["x1y1","x1y2","x1y3"],["x2y1","x2y2","x2y3"],["x3y1","x3y2","x3y3"],["x4y1","x4y2","x4y3"],["x5y1","x5y2","x5y3"]]}’ (the true json has numbers, but for the example i am using strings) It represents values in tree dimentions (X,Y,Z) I would like to convert that json into columns, like the table
Continue reading[SOLVED] How do I convert this C++ 2D array code into Python?
Issue I am currently trying to improve my Python coding skills, but am stuck on something. I am attempting to convert some C++ 2D array code that ignores spaces into Python. What I am trying to do is allow a
Continue reading[SOLVED] Flatten multidimensional array to 3 levels preserving the first level keys
Issue I have a nested multidimensional array like this: $array = [ 1 => [ [ [‘catName’ => ‘Villes’, ‘catUrl’ => ‘villes’, ‘parent’ => 151], [ [‘catName’ => ‘Administratif’, ‘catUrl’ => ‘territoire’, ‘parent’ => 37], [ [‘catName’ => ‘Gegraphie’, ‘catUrl’
Continue reading[SOLVED] Alter array rows to be associative and append an additional associative element
Issue I’ve created a method that allows me to assign keys to rows of values, and appends extra keys and values. It adds all the new keys to a keys array, then adds all new values to the values array,
Continue reading[SOLVED] Group rows of data by 3 columns and sum another column within respective groups
Issue I have the php array like this: Array ( [0] => Array ( [time_stamp] => 1287484988 [date_time] => Tuesday, 19 October 2010 16:13:7 [day] => 19 [month] => 10 [year] => 2010 [time_spent] => 41 ) [1] => Array
Continue reading[SOLVED] Group rows by column value and within groups create new sum column and count column
Issue I am trying to summarize a php multidimensional, I have an array structure like this; Array ( [0] => Array ( [product_id] => 1 [product_name] => Product1 [product_price] => 0.90 ) [1] => Array ( [product_id] => 2 [product_name]
Continue reading[SOLVED] Split 3 dimensional Array in multiple 2 dimensional Arrays in C#
Issue In Java you can do: int [][][] a = new int[2][10][10]; int [][] b = a[0]; But in c# you can’t do: int [,,] a = new int[2,10,10]; int [,] b = a[0]; How would I do this in
Continue reading[SOLVED] How do I check if any elements in a 2d array are equal?
Issue I have a 2d array: {{1, 2, 2}, {3, 1, 4}}. I’m trying to make a function to traverse said array, check if each individual element is equal to any other element in the array and then add the
Continue reading