What do you want to save?
Add Code snippet
New code examples
-
VBA 2022-03-17 18:05:25
excel vba determine number of elements in an array
'Since VBA arrays can have ANY integer value (from -2147483648 to '2147483647) for the lower index in the range for a rank, 'the only sure fire way to determine how many elements is in the array 'is to calculate the value: MsgBox UBound(Arr) - LBound(Ar... Add solution -
Javascript 2022-03-17 02:45:19
javascript create matrix
// this will create a 2D array of 'none' word var size = 3; var myArray = Array(size).fill( Array(size).fill("none") ); console.log(myArray); /* [ ["none", "none", "none"], ["none", "none", &q... Add solution -
Java 2022-02-23 00:10:11
Create dynamic 2d array in java
// Create dynamic 2d array in java import java.util.ArrayList; import java.util.List; public class Dynamic2dArray { public static void main(String[] args) { List<int[]> li = new ArrayList<>(); li.add(new int[]{2,4,6}); ... Add solution -
C++ 2022-02-17 10:35:04
loop over multidimensional array c++
int arr[2][3] = { {1,2,3}, {4,5,6} }; for(int i=0 ; i<sizeof(arr) / sizeof(arr[0]) ; i++){ for(int j=0 ; j<sizeof(arr[i])/sizeof(arr[i][0]) ; j++){ cout<<"2D array have: "<< arr[i][j]<<endl; } } Add solution -
C++ 2022-01-31 09:41:28
c++ smart pointer 2d array
#include <iostream> #include <memory> using namespace std; int main(){ //this just builds a 2D array pi that looks like //0 1 2 3 4 //5 6 7 8 9 //10 11 12 13 //... 24 int** pi=new int*[5]; //this counter is augmented by 5 in every... Add solution -
VBA 2022-01-29 09:46:38
excel vba create an array from a range
v = [a1:b20] 'If v is dimensioned as a variant then he above creates a 2d array, '20 rows high by 2 columns wide and those 40 array elements contain 'the values from the specified range. 'The square brackets are shorthand notation. Another way to code ... Add solution -
VBA 2022-01-23 22:01:27
excel vba clean non breaking space
'VBA function to clean data from range and return an array. This 'function does NOT use loops: Function CleanMAX(r As Range) CleanMAX = Replace("trim(clean(substitute(|,char(160),"" "")))", "|", r.Address) ... Add solution
Best helpers
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5
+5