Forum Discussion
BenoitB
5 years agoCommunity Hero
I know how to make that, at any dimension, in Javascript but you should do yourself the transcription in VBscript.
I give here the code if that can help.
/** * Copie par valeur d'un objet * @function * @author Biache Benoit * @memberof system * @param {Object} O - Objet à copier * @returns {Object} Renvoie un nouvel objet, copie réelle par valeur de la source */ function copyArray(O) { var output, v, key; output = Array.isArray(O) ? [] : {}; for (key in O) { v = O[key]; output[key] = (typeof v === "object") ? copyArray(v) : v; } return output; }
So you use as simple as
let table1, table2;
// Suppose table1 is filled with single data or array of data
// ...
// Copy
table2 = copyArray(table1);
Another solution, simplier and faster, is to go through Json ...
- Lightofstorm5 years agoNew Contributor
Thanks for reply.
Looks like I was probably thinking more about the situation than was really needed.
I already have a solution:
Related Content
- 2 years ago
- 12 years ago
Recent Discussions
- 14 hours ago
- 2 days ago